aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/sem.adb3
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