From c8b0cfd14b46f6c8ec011af87c16db58adf85e8b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 1 Sep 2021 18:15:25 +0200 Subject: synth-vhdl_stmts.adb: do not expect configuration for vunit. For #1850 --- src/synth/synth-vhdl_stmts.adb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/synth/synth-vhdl_stmts.adb') diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb index 9710efb4b..d827311e2 100644 --- a/src/synth/synth-vhdl_stmts.adb +++ b/src/synth/synth-vhdl_stmts.adb @@ -3617,10 +3617,10 @@ package body Synth.Vhdl_Stmts is end case; Config := Get_Prev_Block_Configuration (Config); end loop; - if Config = Null_Node then - raise Internal_Error; + -- There is no block configuration in vunits (yet). + if Config /= Null_Node then + Apply_Block_Configuration (Config, Bod); end if; - Apply_Block_Configuration (Config, Bod); end; -- FIXME: get position ? -- cgit v1.2.3