aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_stmts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-07-23 18:24:09 +0200
committerTristan Gingold <tgingold@free.fr>2021-07-23 18:24:09 +0200
commitffa43831abc1e3f35796a83459dbd62757f2d286 (patch)
treed794db988bb72f9de792929c4080ca869e127341 /src/vhdl/vhdl-sem_stmts.adb
parent44f80dde6d0e248d850f3ca48e5167920f93ca92 (diff)
downloadghdl-ffa43831abc1e3f35796a83459dbd62757f2d286.tar.gz
ghdl-ffa43831abc1e3f35796a83459dbd62757f2d286.tar.bz2
ghdl-ffa43831abc1e3f35796a83459dbd62757f2d286.zip
vhdl-sem_stmts.adb: avoid a crash when forced analysis.
Diffstat (limited to 'src/vhdl/vhdl-sem_stmts.adb')
-rw-r--r--src/vhdl/vhdl-sem_stmts.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_stmts.adb b/src/vhdl/vhdl-sem_stmts.adb
index 287f54dab..771a09c3a 100644
--- a/src/vhdl/vhdl-sem_stmts.adb
+++ b/src/vhdl/vhdl-sem_stmts.adb
@@ -1863,6 +1863,10 @@ package body Vhdl.Sem_Stmts is
Comp_Name : Iir;
Comp : Iir;
begin
+ if Is_Error (Inst) then
+ return Null_Iir;
+ end if;
+
if Get_Kind (Inst) in Iir_Kinds_Entity_Aspect then
return Sem_Entity_Aspect (Inst);
else