summaryrefslogtreecommitdiff
path: root/src/vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/sem.adb6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vhdl/sem.adb b/src/vhdl/sem.adb
index 28cef78..1380568 100644
--- a/src/vhdl/sem.adb
+++ b/src/vhdl/sem.adb
@@ -337,7 +337,11 @@ package body Sem is
-- If the formal can have sources and is guarded, but the actual is
-- not guarded (or has not the same kind of guard), signals cannot
-- be collapsed.
- if Get_Signal_Kind (Formal_Base) /= Get_Signal_Kind (Actual_Base) then
+ if (Get_Guarded_Signal_Flag (Formal_Base)
+ /= Get_Guarded_Signal_Flag (Actual_Base))
+ or else (Get_Signal_Kind (Formal_Base)
+ /= Get_Signal_Kind (Actual_Base))
+ then
return False;
end if;