]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Simplify repeated calls with membership test
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 2 Jul 2020 12:04:07 +0000 (14:04 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:34 +0000 (05:53 -0400)
gcc/ada/

* inline.adb (Expand_Inlined_Call): Simplify repeated calls to
Nkind.

gcc/ada/inline.adb

index 7293cf24b11da343d7eb0355ef9d5488736de7ef..f1c94cd21aa3f6656bf5a8c00bd22167634e3730 100644 (file)
@@ -3728,8 +3728,8 @@ package body Inline is
          return;
       end if;
 
-      if Nkind (Orig_Bod) = N_Defining_Identifier
-        or else Nkind (Orig_Bod) = N_Defining_Operator_Symbol
+      if Nkind (Orig_Bod) in N_Defining_Identifier
+                           | N_Defining_Operator_Symbol
       then
          --  Subprogram is renaming_as_body. Calls occurring after the renaming
          --  can be replaced with calls to the renamed entity directly, because