diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-04-08 18:51:15 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-04-08 18:51:15 +0200 |
commit | 5b384f9a56cb652411d1d63c44db9d4158e51701 (patch) | |
tree | 9ce950007ba0534822444b8b322023debc507a5e /src | |
parent | c50affb98160ed4ff1956a6f538ea4ee0c2fb816 (diff) | |
download | ghdl-5b384f9a56cb652411d1d63c44db9d4158e51701.tar.gz ghdl-5b384f9a56cb652411d1d63c44db9d4158e51701.tar.bz2 ghdl-5b384f9a56cb652411d1d63c44db9d4158e51701.zip |
vhdl: fix crash for -Wdelayed-checks. Fix #794
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/sem.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/sem.adb b/src/vhdl/sem.adb index 45899f368..c5d9761ac 100644 --- a/src/vhdl/sem.adb +++ b/src/vhdl/sem.adb @@ -2461,7 +2461,8 @@ package body Sem is Keep := True; if Emit_Warnings then declare - Callees : constant Iir_List := Get_Callees_List (El); + Bod : constant Iir := Get_Subprogram_Body (El); + Callees : constant Iir_List := Get_Callees_List (Bod); pragma Assert (Callees /= Null_Iir_List); Callee : constant Iir := Get_First_Element (Callees); begin |