aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/ieee-vital_timing.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-06 20:20:52 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-06 20:20:52 +0100
commit1984d2adb083153f03eb7775d956445772ca484f (patch)
tree92939d572fd44940755e30d3963101c0a797f9e7 /src/vhdl/ieee-vital_timing.adb
parentf9dd14670a2b17575bc879f82030faaaabdbbea6 (diff)
downloadghdl-1984d2adb083153f03eb7775d956445772ca484f.tar.gz
ghdl-1984d2adb083153f03eb7775d956445772ca484f.tar.bz2
ghdl-1984d2adb083153f03eb7775d956445772ca484f.zip
Use Flist for array indexes.
Diffstat (limited to 'src/vhdl/ieee-vital_timing.adb')
-rw-r--r--src/vhdl/ieee-vital_timing.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdl/ieee-vital_timing.adb b/src/vhdl/ieee-vital_timing.adb
index c47ffb445..1d4885c7e 100644
--- a/src/vhdl/ieee-vital_timing.adb
+++ b/src/vhdl/ieee-vital_timing.adb
@@ -571,7 +571,7 @@ package body Ieee.Vital_Timing is
elsif Get_Kind (Ptype) = Iir_Kind_Array_Subtype_Definition
and then Get_Base_Type (Ptype) = Std_Logic_Vector_Type
then
- Itype := Get_First_Element (Get_Index_Subtype_List (Ptype));
+ Itype := Get_Nth_Element (Get_Index_Subtype_List (Ptype), 0);
if Get_Type_Staticness (Itype) /= Locally then
return Port_Length_Unknown;
end if;
@@ -640,8 +640,8 @@ package body Ieee.Vital_Timing is
is
Itype : Iir;
begin
- Itype := Get_First_Element
- (Get_Index_Subtype_List (Get_Type (Gen_Decl)));
+ Itype := Get_Nth_Element
+ (Get_Index_Subtype_List (Get_Type (Gen_Decl)), 0);
if Get_Type_Staticness (Itype) /= Locally then
return Port_Length_Unknown;
else