aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-07-05 23:41:43 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-13 10:01:16 +0000
commitd03a7f8c247d73258b80891c79358b745c379992 (patch)
tree21d67e9cf0fa330ba4ed675e86568d4c4e943b11 /gcc/ada/gcc-interface/utils.cc
parent05e91ac1f89dc0b4757ac7e8ffaacd65bcdc4794 (diff)
downloadgcc-d03a7f8c247d73258b80891c79358b745c379992.zip
gcc-d03a7f8c247d73258b80891c79358b745c379992.tar.gz
gcc-d03a7f8c247d73258b80891c79358b745c379992.tar.bz2
[Ada] Fix crash on frontend inlining of functions with single returns
When examining expression of the first declaration of the inlined body make sure that this declaration is in fact an object declaration. gcc/ada/ * inline.adb (Has_Single_Return): Add guard for the subsequent call to Expression.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions