diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-09-14 21:03:45 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-09-15 01:48:28 +0200 |
commit | d70e470c76901f09620745c7921e8280946f19ee (patch) | |
tree | 1d4194b365bc24e2f29a6d01c9379c18b5f45d68 | |
parent | d04a3a95da9d74d8130c20c2f6947fc64b8768a8 (diff) | |
download | ghdl-d70e470c76901f09620745c7921e8280946f19ee.tar.gz ghdl-d70e470c76901f09620745c7921e8280946f19ee.tar.bz2 ghdl-d70e470c76901f09620745c7921e8280946f19ee.zip |
trans-chap7: fix choice of exp. Fix #2189
-rw-r--r-- | src/vhdl/translate/trans-chap7.adb | 6 |
1 files changed, 3 insertions, 3 deletions
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; |