aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/parse.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-07 07:48:55 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-07 07:48:55 +0100
commita08289c5ad4c904a1b16445ee35fb00c05f87b64 (patch)
tree9406b043b8a90c06f0136ab19b6fadc20a1ae161 /src/vhdl/parse.adb
parent06d553f9d32184ad71f47bbcfcde2528d40408ac (diff)
downloadghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.tar.gz
ghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.tar.bz2
ghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.zip
Use flist for enumerations.
Diffstat (limited to 'src/vhdl/parse.adb')
-rw-r--r--src/vhdl/parse.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/parse.adb b/src/vhdl/parse.adb
index e459e3cbd..6284ac0fe 100644
--- a/src/vhdl/parse.adb
+++ b/src/vhdl/parse.adb
@@ -1849,7 +1849,6 @@ package body Parse is
Enum_Type := Create_Iir (Iir_Kind_Enumeration_Type_Definition);
Set_Location (Enum_Type);
Enum_List := Create_Iir_List;
- Set_Enumeration_Literal_List (Enum_Type, Enum_List);
-- LRM93 3.1.1
-- The position number of the first listed enumeration literal is zero.
@@ -1907,6 +1906,8 @@ package body Parse is
-- Skip ')'.
Scan;
+ Set_Enumeration_Literal_List (Enum_Type, List_To_Flist (Enum_List));
+
return Enum_Type;
end Parse_Enumeration_Type_Definition;