From d70e470c76901f09620745c7921e8280946f19ee Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 14 Sep 2022 21:03:45 +0200 Subject: trans-chap7: fix choice of exp. Fix #2189 --- src/vhdl/translate/trans-chap7.adb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vhdl/translate/trans-chap7.adb b/src/vhdl/translate/trans-chap7.adb index 3296b2aaf..0ecd59f34 100644 --- a/src/vhdl/translate/trans-chap7.adb +++ b/src/vhdl/translate/trans-chap7.adb @@ -2669,12 +2669,12 @@ package body Trans.Chap7 is return New_Convert_Ov (Res, Res_Otype); when Iir_Predefined_Integer_Exp => declare - Left_Tinfo : constant Type_Info_Acc := - Get_Info (Get_Type (Left)); + Expr_Tinfo : constant Type_Info_Acc := + Get_Info (Get_Type (Expr)); Opr : O_Dnode; Etype : O_Tnode; begin - case Type_Mode_Integers (Left_Tinfo.Type_Mode) is + case Type_Mode_Integers (Expr_Tinfo.Type_Mode) is when Type_Mode_I32 => Opr := Ghdl_I32_Exp; Etype := Ghdl_I32_Type; -- cgit v1.2.3