diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-07-25 11:41:02 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-07-25 11:41:02 +0200 |
commit | 4e82c7fb907c0d95a45414e246ddade84afe34e5 (patch) | |
tree | 1d8e79450751b1c792e7882c7fba1cee6ff1c1af /src/vhdl/translate/trans-chap4.adb | |
parent | 81502d5d023ea5fbd71970497af2b7168fdb41c7 (diff) | |
download | ghdl-4e82c7fb907c0d95a45414e246ddade84afe34e5.tar.gz ghdl-4e82c7fb907c0d95a45414e246ddade84afe34e5.tar.bz2 ghdl-4e82c7fb907c0d95a45414e246ddade84afe34e5.zip |
trans: propagate parent_type changes.
Diffstat (limited to 'src/vhdl/translate/trans-chap4.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap4.adb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/vhdl/translate/trans-chap4.adb b/src/vhdl/translate/trans-chap4.adb index 488dc9021..029acee48 100644 --- a/src/vhdl/translate/trans-chap4.adb +++ b/src/vhdl/translate/trans-chap4.adb @@ -1625,18 +1625,9 @@ package body Trans.Chap4 is is Def : constant Iir := Get_Type (Decl); Mark : Id_Mark_Type; - Parent_Type : Iir; begin Push_Identifier_Prefix (Mark, Get_Identifier (Decl)); - Parent_Type := Get_Subtype_Type_Mark (Def); - if Parent_Type /= Null_Iir then - -- For normal user subtype declaration. - Parent_Type := Get_Type (Get_Named_Entity (Parent_Type)); - else - -- For implicit subtype declaration of a type declaration. - Parent_Type := Get_Base_Type (Def); - end if; - Chap3.Translate_Subtype_Definition (Def, Parent_Type, True); + Chap3.Translate_Subtype_Definition (Def, True); Pop_Identifier_Prefix (Mark); end Translate_Subtype_Declaration; |