[Ada] Unnesting: ensure Current_Subprogram is always initialized
2018-12-11 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * exp_unst.adb (Unnest_Subprogram): Ensure Current_Subprogram is always initialized. From-SVN: r267009
This commit is contained in:
parent
f2bee23951
commit
2ffa39d247
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-12-11 Arnaud Charlet <charlet@adacore.com>
|
||||
|
||||
* exp_unst.adb (Unnest_Subprogram): Ensure Current_Subprogram is
|
||||
always initialized.
|
||||
|
||||
2018-12-11 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc-interface/decl.c (gnat_to_gnu_entity): Add
|
||||
|
|
|
@ -440,7 +440,7 @@ package body Exp_Unst is
|
|||
Urefs.Init;
|
||||
|
||||
Build_Tables : declare
|
||||
Current_Subprogram : Entity_Id;
|
||||
Current_Subprogram : Entity_Id := Empty;
|
||||
-- When we scan a subprogram body, we set Current_Subprogram to the
|
||||
-- corresponding entity. This gets recursively saved and restored.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue