diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-07-05 23:41:43 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-07-13 10:01:16 +0000 |
commit | d03a7f8c247d73258b80891c79358b745c379992 (patch) | |
tree | 21d67e9cf0fa330ba4ed675e86568d4c4e943b11 /gcc/ada/gcc-interface/utils.cc | |
parent | 05e91ac1f89dc0b4757ac7e8ffaacd65bcdc4794 (diff) | |
download | gcc-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