diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:25:36 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:25:36 +0200 |
commit | d1f7d9d8c85c7b97c3bf8acf791aa7b15c2039bf (patch) | |
tree | 219b66b924ecaeafb80a308ecbeda5f54f8e8330 /src | |
parent | 043439298fd884953acb61cc0622faf8bd6e9e95 (diff) | |
download | ghdl-d1f7d9d8c85c7b97c3bf8acf791aa7b15c2039bf.tar.gz ghdl-d1f7d9d8c85c7b97c3bf8acf791aa7b15c2039bf.tar.bz2 ghdl-d1f7d9d8c85c7b97c3bf8acf791aa7b15c2039bf.zip |
vhdl-sem_specs: avoid a crash on missing entity name.
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-sem_specs.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_specs.adb b/src/vhdl/vhdl-sem_specs.adb index aecaaa47f..8d930263c 100644 --- a/src/vhdl/vhdl-sem_specs.adb +++ b/src/vhdl/vhdl-sem_specs.adb @@ -1116,6 +1116,10 @@ package body Vhdl.Sem_Specs is Arch_Unit : Iir; begin -- The entity. + Entity_Name := Get_Entity_Name (Aspect); + if Is_Error (Entity_Name) then + return Null_Iir; + end if; Entity_Name := Sem_Denoting_Name (Get_Entity_Name (Aspect)); Set_Entity_Name (Aspect, Entity_Name); Entity := Get_Named_Entity (Entity_Name); |