diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-10-24 05:29:44 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-10-24 05:29:44 +0200 |
commit | 3e3072fa63981eb3535a9c3ba4b0f5a562cacd16 (patch) | |
tree | b9d0d3cdde930c38eb5dc5061c3ad01ba9949e63 /src/vhdl/translate | |
parent | 93144485a2f97d6f8f8d8e7565f60cc600f7229e (diff) | |
download | ghdl-3e3072fa63981eb3535a9c3ba4b0f5a562cacd16.tar.gz ghdl-3e3072fa63981eb3535a9c3ba4b0f5a562cacd16.tar.bz2 ghdl-3e3072fa63981eb3535a9c3ba4b0f5a562cacd16.zip |
trans: adjust previous patch
Diffstat (limited to 'src/vhdl/translate')
-rw-r--r-- | src/vhdl/translate/trans-chap8.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap8.adb b/src/vhdl/translate/trans-chap8.adb index 4d608c839..f1366a540 100644 --- a/src/vhdl/translate/trans-chap8.adb +++ b/src/vhdl/translate/trans-chap8.adb @@ -2896,7 +2896,12 @@ package body Trans.Chap8 is -- * compute the size of the object Chap3.Gen_Call_Type_Builder (Chap3.Get_Composite_Bounds (Params (Last_Individual)), - Get_Type (Base_Formal), Formal_Object_Kind); + Get_Type (Base_Formal), Mode_Value); + if Formal_Object_Kind = Mode_Signal then + Chap3.Gen_Call_Type_Builder + (Chap3.Get_Composite_Bounds (Params (Last_Individual)), + Get_Type (Base_Formal), Mode_Signal); + end if; -- * allocate base Chap3.Allocate_Unbounded_Composite_Base |