]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Small refactor
authorViljar Indus <indus@adacore.com>
Tue, 11 Jul 2023 12:20:15 +0000 (15:20 +0300)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 28 Jul 2023 07:28:14 +0000 (09:28 +0200)
gcc/ada/

* exp_util.adb (Find_Optional_Prim_Op): use "No" instead of "= Empty"

gcc/ada/exp_util.adb

index 66e1acbf65eec32afecae9c5111987781472fa64..9f843d6d71e14273b64af388e20de51ebeee3132 100644 (file)
@@ -6291,8 +6291,9 @@ package body Exp_Util is
 
       Typ := Underlying_Type (Typ);
 
-      --  We cannot find the operation if there is no full view available.
-      if Typ = Empty then
+      --  We cannot find the operation if there is no full view available
+
+      if No (Typ) then
          return Empty;
       end if;