aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-loop-jam.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-08-16 11:28:37 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-08-29 15:06:28 +0200
commit499406992f48cc8da64448a107f95e681cea9039 (patch)
tree1980d21be7864ed75b67f9a976dc6a4b0981dced /gcc/gimple-loop-jam.cc
parentc2e3326a10f585fb252a1d54e7a83e7efecbf99a (diff)
downloadgcc-499406992f48cc8da64448a107f95e681cea9039.zip
gcc-499406992f48cc8da64448a107f95e681cea9039.tar.gz
gcc-499406992f48cc8da64448a107f95e681cea9039.tar.bz2
ada: Fix missing finalization for call to function returning limited view
The call is legal because it is made from the body, which has visibility on the nonlimited view, so this changes the code in Expand_Call_Helper to look at the Etype of the call node instead of the Etype of the function. gcc/ada/ * exp_ch6.adb (Expand_Call_Helper): In the case of a function call, look at the Etype of the call node to determine whether finalization actions need to be performed.
Diffstat (limited to 'gcc/gimple-loop-jam.cc')
0 files changed, 0 insertions, 0 deletions