aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap4.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/translate/trans-chap4.adb')
-rw-r--r--src/vhdl/translate/trans-chap4.adb11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/vhdl/translate/trans-chap4.adb b/src/vhdl/translate/trans-chap4.adb
index 69577161e..0814f4974 100644
--- a/src/vhdl/translate/trans-chap4.adb
+++ b/src/vhdl/translate/trans-chap4.adb
@@ -360,12 +360,11 @@ package body Trans.Chap4 is
end if;
Gen_Exit_When (Label,
New_Compare_Op (ON_Eq,
- New_Obj_Value (Index), Upper_Limit,
- Ghdl_Bool_Type));
- Init_Object (Chap3.Index_Base (Chap3.Get_Composite_Base (Sobj),
- Obj_Type,
- New_Obj_Value (Index)),
- Get_Element_Subtype (Obj_Type));
+ New_Obj_Value (Index), Upper_Limit,
+ Ghdl_Bool_Type));
+ Init_Object
+ (Chap6.Translate_Indexed_Name_By_Offset (Sobj, Obj_Type, Index),
+ Get_Element_Subtype (Obj_Type));
Inc_Var (Index);
Finish_Loop_Stmt (Label);