diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-25 06:59:14 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-25 06:59:31 +0200 |
commit | f062a7a4107c9f11267c86c988b7182489ed1346 (patch) | |
tree | 299a6d6b98f61755c99fd9306219c3f61c8feb63 /src/synth/synth-expr.adb | |
parent | 010aca1966eeb260529041d209d69a92654465f8 (diff) | |
download | ghdl-f062a7a4107c9f11267c86c988b7182489ed1346.tar.gz ghdl-f062a7a4107c9f11267c86c988b7182489ed1346.tar.bz2 ghdl-f062a7a4107c9f11267c86c988b7182489ed1346.zip |
synth: fixes after previous patch.
Diffstat (limited to 'src/synth/synth-expr.adb')
-rw-r--r-- | src/synth/synth-expr.adb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 5e76d3eb4..451a04951 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -1351,7 +1351,7 @@ package body Synth.Expr is Conv_Type : constant Node := Get_Type (Conv); Val : Value_Acc; begin - Val := Synth_Expression (Syn_Inst, Expr); + Val := Synth_Expression_With_Basetype (Syn_Inst, Expr); case Get_Kind (Conv_Type) is when Iir_Kind_Integer_Subtype_Definition => if Val.Typ.Kind = Type_Float then @@ -1534,8 +1534,7 @@ package body Synth.Expr is when Iir_Kind_Qualified_Expression => return Synth_Expression_With_Type (Syn_Inst, Get_Expression (Expr), - Get_Value_Type (Syn_Inst, Get_Type (Get_Named_Entity - (Get_Type_Mark (Expr))))); + Get_Value_Type (Syn_Inst, Get_Type (Get_Type_Mark (Expr)))); when Iir_Kind_Function_Call => declare Imp : constant Node := Get_Implementation (Expr); |