aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/synth/synth-expr.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index b36545e89..3ac24cded 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -1630,6 +1630,9 @@ package body Synth.Expr is
Val : Value_Acc;
begin
Val := Synth_Expression_With_Basetype (Syn_Inst, Expr);
+ if Val = null then
+ return null;
+ end if;
Strip_Const (Val);
case Get_Kind (Conv_Type) is
when Iir_Kind_Integer_Subtype_Definition =>