diff options
author | Bob Duff <duff@adacore.com> | 2021-08-11 07:44:31 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-05 08:20:08 +0000 |
commit | 650ad524d8a5928998037c1f6434054d46a400d4 (patch) | |
tree | af5a5efd2a07c00d4633db7c728060d17c18383d /gcc/tree-pretty-print.c | |
parent | 07ad659daf4b015eb6957a7c7e299a04a0039e82 (diff) | |
download | gcc-650ad524d8a5928998037c1f6434054d46a400d4.zip gcc-650ad524d8a5928998037c1f6434054d46a400d4.tar.gz gcc-650ad524d8a5928998037c1f6434054d46a400d4.tar.bz2 |
[Ada] Fix latent bug in set_end_locus_from_node
gcc/ada/
* gcc-interface/trans.c (set_end_locus_from_node): Check that
Handled_Statement_Sequence is not Empty before calling
End_Label, because the Empty node has no End_Label, and
depending on the exact node layout chosen by gen_il, calling
End_Label might crash, or might work OK by accident.
Diffstat (limited to 'gcc/tree-pretty-print.c')
0 files changed, 0 insertions, 0 deletions