projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b80069
)
[Ada] Simplify repeated calls with membership test
author
Piotr Trojanek
<trojanek@adacore.com>
Thu, 2 Jul 2020 12:04:07 +0000
(14:04 +0200)
committer
Pierre-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
patch
|
blob
|
history
diff --git
a/gcc/ada/inline.adb
b/gcc/ada/inline.adb
index 7293cf24b11da343d7eb0355ef9d5488736de7ef..f1c94cd21aa3f6656bf5a8c00bd22167634e3730 100644
(file)
--- 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