aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-05-25 08:04:41 +0200
committerTristan Gingold <tgingold@free.fr>2021-05-25 08:04:41 +0200
commite9352e8ec0caaddd97d747ee1ca72cefc56edbde (patch)
treea4d973ab2f373e8d95bb49476cc14ddbeace1e0b /src/vhdl
parentdfabd89fe70678316caa7d070080230ea33d2f66 (diff)
downloadghdl-e9352e8ec0caaddd97d747ee1ca72cefc56edbde.tar.gz
ghdl-e9352e8ec0caaddd97d747ee1ca72cefc56edbde.tar.bz2
ghdl-e9352e8ec0caaddd97d747ee1ca72cefc56edbde.zip
vhdl-utils: element attribute is a type mark
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-utils.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-utils.adb b/src/vhdl/vhdl-utils.adb
index 46c9bcd72..d90bef487 100644
--- a/src/vhdl/vhdl-utils.adb
+++ b/src/vhdl/vhdl-utils.adb
@@ -1186,7 +1186,8 @@ package body Vhdl.Utils is
return Get_Type_Definition (Ent);
when Iir_Kind_Subtype_Declaration
| Iir_Kind_Base_Attribute
- | Iir_Kind_Subtype_Attribute =>
+ | Iir_Kind_Subtype_Attribute
+ | Iir_Kind_Element_Attribute =>
return Get_Type (Ent);
when others =>
return Null_Iir;