]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Simplify "not Present" with "No"
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 25 Sep 2023 15:30:57 +0000 (17:30 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 19 Oct 2023 14:35:21 +0000 (16:35 +0200)
gcc/ada/

* exp_aggr.adb (Expand_Container_Aggregate): Simplify with "No".

gcc/ada/exp_aggr.adb

index e5f3632660086c0d8db415388200cfa40e543c9c..340c8c68465b4971e53041d2553c0537d66e6e4d 100644 (file)
@@ -7288,7 +7288,7 @@ package body Exp_Aggr is
                      --  Iterated component association. Discard
                      --  positional insertion procedure.
 
-                     if not Present (Iterator_Specification (Comp)) then
+                     if No (Iterator_Specification (Comp)) then
                         Add_Named_Subp := Assign_Indexed_Subp;
                         Add_Unnamed_Subp := Empty;
                      end if;