From b5a05dc501aab8cd35122c98a161ddcb15facb9b Mon Sep 17 00:00:00 2001 From: Ghjuvan Lacambre Date: Fri, 5 Jun 2020 09:46:15 +0200 Subject: [PATCH] [Ada] Do not perform null exclusion static checks on generated entities gcc/ada/ * sem_ch3.adb (Analyze_Object_Declaration): Add Comes_From_Source call. --- gcc/ada/sem_ch3.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 78a22a44a3f..5f92a779633 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -4055,7 +4055,7 @@ package body Sem_Ch3 is then null; - else + elsif Comes_From_Source (Id) then declare Save_Typ : constant Entity_Id := Etype (Id); begin -- 2.30.2