mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 12:51:15 +08:00
[Ada] Set missing Parent field of block entity
gcc/ada/ * exp_ch9.adb (Expand_N_Accept_Statement): Set Parent of the created block entity to the created block statement.
This commit is contained in:
parent
8e640a5f32
commit
340375cae9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user