diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-09-01 18:15:25 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-09-01 18:15:25 +0200 |
commit | c8b0cfd14b46f6c8ec011af87c16db58adf85e8b (patch) | |
tree | e0d9fc3057b45eff7f50dce669d5580599bf7ba9 /src | |
parent | 4fdd39143323b27e2c600947964e866e257742a8 (diff) | |
download | ghdl-c8b0cfd14b46f6c8ec011af87c16db58adf85e8b.tar.gz ghdl-c8b0cfd14b46f6c8ec011af87c16db58adf85e8b.tar.bz2 ghdl-c8b0cfd14b46f6c8ec011af87c16db58adf85e8b.zip |
synth-vhdl_stmts.adb: do not expect configuration for vunit.
For #1850
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/synth-vhdl_stmts.adb | 6 |
1 files changed, 3 insertions, 3 deletions
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 ? |