diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-10-26 19:24:44 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-10-26 19:24:44 +0200 |
commit | 70abe0cd253704a2517c9edea387eb0c56265a25 (patch) | |
tree | c7f8367a58fa7c6e187c9bdf2b684d784824da62 | |
parent | 1014234660d921a5dccb8bd1d1766190f561611b (diff) | |
download | ghdl-70abe0cd253704a2517c9edea387eb0c56265a25.tar.gz ghdl-70abe0cd253704a2517c9edea387eb0c56265a25.tar.bz2 ghdl-70abe0cd253704a2517c9edea387eb0c56265a25.zip |
trans-chap8: minor refactoring.
-rw-r--r-- | src/vhdl/translate/trans-chap8.adb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vhdl/translate/trans-chap8.adb b/src/vhdl/translate/trans-chap8.adb index 39f31a522..4f0d06fde 100644 --- a/src/vhdl/translate/trans-chap8.adb +++ b/src/vhdl/translate/trans-chap8.adb @@ -2698,6 +2698,10 @@ package body Trans.Chap8 is when Iir_Kind_Association_Element_By_Individual => Actual_Type := Get_Actual_Type (El); + -- Save the object as it will be used by the following + -- associations. + Last_Individual := Pos; + for Mode in Mode_Value .. Formal_Object_Kind loop -- For individual associations, create a variable -- containing the whole actual. Each individual @@ -2731,6 +2735,8 @@ package body Trans.Chap8 is if Ftype_Info.Type_Mode in Type_Mode_Unbounded then -- Create the constraints and then the object. -- FIXME: do not allocate bounds. + pragma Assert + (Get_Type_Staticness (Actual_Type) >= Globally); Chap3.Create_Array_Subtype (Actual_Type); Bounds := Chap3.Get_Array_Type_Bounds (Actual_Type); Chap3.Translate_Object_Allocation @@ -2742,9 +2748,6 @@ package body Trans.Chap8 is end if; end; - -- Save the object as it will be used by the following - -- associations. - Last_Individual := Pos; -- In case of signals, don't keep value, only keep -- signal (so override the value). Params (Pos) := Param; |