diff options
-rw-r--r-- | src/synth/synth-expr.adb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 8724afdc0..763e6379c 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -1588,6 +1588,7 @@ package body Synth.Expr is Val : Value_Acc; begin Val := Synth_Expression_With_Basetype (Syn_Inst, Expr); + Strip_Const (Val); case Get_Kind (Conv_Type) is when Iir_Kind_Integer_Subtype_Definition => if Val.Typ.Kind = Type_Discrete then |