diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-12-11 18:43:37 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-12-11 18:43:37 +0100 |
commit | eef83a5f38709f860ffab53641e7dc181f2379ab (patch) | |
tree | 1659705419b9c3ab3afa9ec884b24b50194ec0ad /src/vhdl | |
parent | 550943a8340900fae01faac333656a6ad4fb50ea (diff) | |
download | ghdl-eef83a5f38709f860ffab53641e7dc181f2379ab.tar.gz ghdl-eef83a5f38709f860ffab53641e7dc181f2379ab.tar.bz2 ghdl-eef83a5f38709f860ffab53641e7dc181f2379ab.zip |
simul: fix crash while calling foreign subprogram.
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/simulate/simul-annotations.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/simulate/simul-annotations.adb b/src/vhdl/simulate/simul-annotations.adb index 6a21d3382..21ab0a034 100644 --- a/src/vhdl/simulate/simul-annotations.adb +++ b/src/vhdl/simulate/simul-annotations.adb @@ -508,13 +508,13 @@ package body Simul.Annotations is Spec : constant Iir := Get_Subprogram_Specification (Subprg); Subprg_Info : constant Sim_Info_Acc := Get_Info (Spec); begin + Set_Info (Subprg, Subprg_Info); + -- Do not annotate body of foreign subprograms. if Get_Foreign_Flag (Spec) then return; end if; - Set_Info (Subprg, Subprg_Info); - Annotate_Declaration_List (Subprg_Info, Get_Declaration_Chain (Subprg)); |