aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-10-10 18:20:02 +0200
committerTristan Gingold <tgingold@free.fr>2022-10-10 18:20:02 +0200
commit5726f0eccf874b872ce0729aab42f587d915a3f5 (patch)
tree6dbc6075c1a9382b4cd3226a2aee434c1ca39972 /src/vhdl
parent035d4ba77e4e988ec644e1ad221817c38b0ab530 (diff)
downloadghdl-5726f0eccf874b872ce0729aab42f587d915a3f5.tar.gz
ghdl-5726f0eccf874b872ce0729aab42f587d915a3f5.tar.bz2
ghdl-5726f0eccf874b872ce0729aab42f587d915a3f5.zip
vhdl-canon: avoid a crash on optionnal condition. Fix #2212
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-canon.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-canon.adb b/src/vhdl/vhdl-canon.adb
index 1cad2b147..b07fb7d7c 100644
--- a/src/vhdl/vhdl-canon.adb
+++ b/src/vhdl/vhdl-canon.adb
@@ -499,7 +499,7 @@ package body Vhdl.Canon is
(Get_Target (Stmt), List, True);
Ce := Get_Conditional_Expression_Chain (Stmt);
while Ce /= Null_Iir loop
- Canon_Extract_Sensitivity_Expression
+ Canon_Extract_Sensitivity_If_Not_Null
(Get_Condition (Ce), List, False);
Canon_Extract_Sensitivity_Expression
(Get_Expression (Ce), List, False);