aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/canon.adb5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vhdl/canon.adb b/src/vhdl/canon.adb
index 15295b439..2657bff1e 100644
--- a/src/vhdl/canon.adb
+++ b/src/vhdl/canon.adb
@@ -863,6 +863,11 @@ package body Canon is
is
We : Iir_Waveform_Element;
begin
+ if Get_Kind (Waveform) = Iir_Kind_Unaffected_Waveform then
+ pragma Assert (Get_Chain (Waveform) = Null_Iir);
+ return;
+ end if;
+
We := Waveform;
while We /= Null_Iir loop
Canon_Expression (Get_We_Value (We));