diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-03-27 08:13:31 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-03-27 08:13:31 +0100 |
commit | b004cea2d392fb28110a970e009590afb0ce457e (patch) | |
tree | 71b547be4f6f672ad6f61a7d82dfbc8886153fb2 /src/synth/synth-oper.adb | |
parent | 798c9aa771f363a2129950c4873eb94a185e5ec3 (diff) | |
download | ghdl-b004cea2d392fb28110a970e009590afb0ce457e.tar.gz ghdl-b004cea2d392fb28110a970e009590afb0ce457e.tar.bz2 ghdl-b004cea2d392fb28110a970e009590afb0ce457e.zip |
synth: improve fatal error propagation.
Diffstat (limited to 'src/synth/synth-oper.adb')
-rw-r--r-- | src/synth/synth-oper.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb index ed962e378..d99e0f836 100644 --- a/src/synth/synth-oper.adb +++ b/src/synth/synth-oper.adb @@ -1348,6 +1348,9 @@ package body Synth.Oper is end Synth_Vec_Reduce_Monadic; begin Operand := Synth_Expression_With_Type (Syn_Inst, Operand_Expr, Oper_Typ); + if Operand = null then + return null; + end if; Operand := Synth_Subtype_Conversion (Operand, Oper_Typ, False, Loc); Strip_Const (Operand); |