From a119897355ddbc3d7a82b53d32a6a297fc2cb137 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Tue, 12 Jan 2021 21:16:28 +0100 Subject: [PATCH] [Ada] Cleanup a statically true condition in expanded raise statement gcc/ada/ * exp_ch4.adb (Apply_Accessibility_Check): Skip a statically true condition in expanded raise statement. --- gcc/ada/exp_ch4.adb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index 0ef744b48f36..cfdfefce5f3c 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -737,8 +737,7 @@ package body Exp_Ch4 is Append_To (Stmts, Make_Raise_Program_Error (Loc, - Condition => New_Occurrence_Of (Standard_True, Loc), - Reason => PE_Accessibility_Check_Failed)); + Reason => PE_Accessibility_Check_Failed)); -- Step 2: Create the accessibility comparison -- 2.47.2