aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_expr.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r--src/vhdl/sem_expr.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 10417b3de..664272182 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -3025,7 +3025,7 @@ package body Sem_Expr is
Constrained : Boolean;
Dim: Natural)
is
- Index_List : constant Iir_List := Get_Index_Subtype_List (A_Type);
+ Index_List : constant Iir_Flist := Get_Index_Subtype_List (A_Type);
-- Type of the index (this is also the type of the choices).
Index_Type : constant Iir := Get_Index_Type (Index_List, Dim - 1);
@@ -3419,7 +3419,7 @@ package body Sem_Expr is
is
A_Subtype: Iir;
Base_Type : Iir;
- Index_List : constant Iir_List := Get_Index_Subtype_List (Aggr_Type);
+ Index_List : constant Iir_Flist := Get_Index_Subtype_List (Aggr_Type);
Nbr_Dim : constant Natural := Get_Nbr_Elements (Index_List);
Infos : Array_Aggr_Info_Arr (1 .. Nbr_Dim);
Aggr_Constrained : Boolean;
@@ -3451,8 +3451,8 @@ package body Sem_Expr is
A_Subtype := Create_Array_Subtype (Base_Type, Get_Location (Aggr));
Type_Staticness := Get_Type_Staticness (A_Subtype);
for I in Infos'Range loop
- Append_Element (Get_Index_Subtype_List (A_Subtype),
- Infos (I).Index_Subtype);
+ Set_Nth_Element (Get_Index_Subtype_List (A_Subtype), I - 1,
+ Infos (I).Index_Subtype);
Type_Staticness := Min
(Type_Staticness, Get_Type_Staticness (Infos (I).Index_Subtype));
end loop;