public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4294] [Ada] Remove redundant guard against an empty component list
@ 2021-10-11 13:39 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-11 13:39 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7dc58f3fc27ac9620b469dc56c44d55b7ee9d1a6

commit r12-4294-g7dc58f3fc27ac9620b469dc56c44d55b7ee9d1a6
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Wed Sep 29 12:13:17 2021 +0200

    [Ada] Remove redundant guard against an empty component list
    
    gcc/ada/
    
            * exp_aggr.adb (Component_OK_For_Backend): Remove redundant
            guard.

Diff:
---
 gcc/ada/exp_aggr.adb | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb
index 71bad3cb676..06cdafda418 100644
--- a/gcc/ada/exp_aggr.adb
+++ b/gcc/ada/exp_aggr.adb
@@ -8547,10 +8547,6 @@ package body Exp_Aggr is
          Expr_Q : Node_Id;
 
       begin
-         if No (Comps) then
-            return True;
-         end if;
-
          C := First (Comps);
          while Present (C) loop


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

only message in thread, other threads:[~2021-10-11 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11 13:39 [gcc r12-4294] [Ada] Remove redundant guard against an empty component list 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).