From: Piotr Trojanek Date: Thu, 2 Jul 2020 12:04:07 +0000 (+0200) Subject: [Ada] Simplify repeated calls with membership test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00bccdf048803a264b4707ac0d23f0bfa0c1edaf;p=gcc.git [Ada] Simplify repeated calls with membership test gcc/ada/ * inline.adb (Expand_Inlined_Call): Simplify repeated calls to Nkind. --- diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb index 7293cf24b11..f1c94cd21aa 100644 --- a/gcc/ada/inline.adb +++ b/gcc/ada/inline.adb @@ -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