projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e640a5
)
[Ada] Set missing Parent field of block entity
author
Eric Botcazou
<ebotcazou@adacore.com>
Thu, 11 Jun 2020 13:25:44 +0000
(15:25 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 16 Jul 2020 09:18:13 +0000
(
05:18
-0400)
gcc/ada/
* exp_ch9.adb (Expand_N_Accept_Statement): Set Parent of the
created block entity to the created block statement.
gcc/ada/exp_ch9.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/exp_ch9.adb
b/gcc/ada/exp_ch9.adb
index 2c3e9d8df80577b66e5a9235adc2347bc280ca54..001aa4b77d4f4055ab144730c66cdb6fa6b8f97c 100644
(file)
--- a/
gcc/ada/exp_ch9.adb
+++ b/
gcc/ada/exp_ch9.adb
@@
-6660,6
+6660,7
@@
package body Exp_Ch9 is
-- must be properly set.
Set_Parent (Block, Parent (N));
+ Set_Parent (Blkent, Block);
-- Prepend call to Accept_Call to main statement sequence If the
-- accept has exception handlers, the statement sequence is wrapped