public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-500] [Ada] Cleanup a statically true condition in expanded raise statement
@ 2021-05-05  8:21 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-05-05  8:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a119897355ddbc3d7a82b53d32a6a297fc2cb137

commit r12-500-ga119897355ddbc3d7a82b53d32a6a297fc2cb137
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Tue Jan 12 21:16:28 2021 +0100

    [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.

Diff:
---
 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 0ef744b48f3..cfdfefce5f3 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-05  8:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05  8:21 [gcc r12-500] [Ada] Cleanup a statically true condition in expanded raise statement Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).