aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_names.adb4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index 4548c8175..cb03d4690 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -3708,9 +3708,7 @@ package body Vhdl.Sem_Names is
-- LRM08 16.2 Predefined attributes
-- Prefix: Any prefix O that is appropriate for an object, or an alias
-- thereof
- if (Get_Kind (Get_Base_Name (Prefix_Name))
- not in Iir_Kinds_Object_Declaration)
- then
+ if not Is_Object_Name (Prefix_Name) then
Error_Msg_Sem (+Attr, "prefix must denote an object");
return Error_Mark;
end if;