From 00bccdf048803a264b4707ac0d23f0bfa0c1edaf Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Thu, 2 Jul 2020 14:04:07 +0200 Subject: [PATCH] [Ada] Simplify repeated calls with membership test gcc/ada/ * inline.adb (Expand_Inlined_Call): Simplify repeated calls to Nkind. --- gcc/ada/inline.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2