diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-03-16 05:08:28 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-03-16 05:08:28 +0100 |
commit | f1ddf165155bd6f9d2ebfe10d08c7988927c4ba3 (patch) | |
tree | 99637b276a745868ee682d23d839fb0e5014175f /src/vhdl/translate/trans-chap4.ads | |
parent | 37192248646ce7b4688f105877449c640e5039ce (diff) | |
download | ghdl-f1ddf165155bd6f9d2ebfe10d08c7988927c4ba3.tar.gz ghdl-f1ddf165155bd6f9d2ebfe10d08c7988927c4ba3.tar.bz2 ghdl-f1ddf165155bd6f9d2ebfe10d08c7988927c4ba3.zip |
translation: avoid memory leak while allocating ports.
Issue found in bug040.
Diffstat (limited to 'src/vhdl/translate/trans-chap4.ads')
-rw-r--r-- | src/vhdl/translate/trans-chap4.ads | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap4.ads b/src/vhdl/translate/trans-chap4.ads index 317d10342..d91f0ee52 100644 --- a/src/vhdl/translate/trans-chap4.ads +++ b/src/vhdl/translate/trans-chap4.ads @@ -68,7 +68,10 @@ package Trans.Chap4 is procedure Translate_Generic_Chain (Parent : Iir); -- Elaborate signal subtypes and allocate the storage for the object. - procedure Elab_Signal_Declaration_Storage (Decl : Iir); + -- If HAS_COPY is true, do not allocate storage for values, as the values + -- will be directly referenced from the association. + procedure Elab_Signal_Declaration_Storage + (Decl : Iir; Has_Copy : Boolean); -- Create signal object. -- Note: SIG can be a signal sub-element (used when signals are |