From: Eric Botcazou <[email protected]>
gcc/ada/ChangeLog:
* sem_ch3.adb (Analyze_Object_Declaration): Streamline test.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_ch3.adb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index 3cbef0c1819..e909e288b82 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -4661,9 +4661,7 @@ package body Sem_Ch3 is
-- set the link in both the anonymous base type and anonymous subtype
-- that are built to represent the array type to point to the object.
- if Nkind (Object_Definition (Declaration_Node (Id))) =
- N_Constrained_Array_Definition
- then
+ if Nkind (Object_Definition (N)) = N_Constrained_Array_Definition then
Set_Related_Array_Object (T, Id);
Set_Related_Array_Object (Base_Type (T), Id);
end if;
--
2.53.0