aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_inst.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_inst.adb b/src/vhdl/vhdl-sem_inst.adb
index 54b31cc30..ba5c72acf 100644
--- a/src/vhdl/vhdl-sem_inst.adb
+++ b/src/vhdl/vhdl-sem_inst.adb
@@ -673,7 +673,7 @@ package body Vhdl.Sem_Inst is
begin
Set_Suspend_State_Chain (Res, Last);
Set_Suspend_State_Last (Decl, Res);
- if Decl = Null_Node then
+ if Last = Null_Node then
Set_Suspend_State_Chain (Decl, Res);
end if;
end;