[Ada] Prevent early exits without restoring a global variable
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 1 Dec 2020 14:17:27 +0000 (15:17 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Dec 2020 10:49:24 +0000 (05:49 -0500)
commit96c1f71463d067012241179df71c5872cec7a765
tree2760394089ca07beda5292d3ac6bb04897371553
parent445032728dd46e3692a9aed879c6cf350259a53a
[Ada] Prevent early exits without restoring a global variable

gcc/ada/

* sem_ch5.adb (Analyze_Case_Statement): Move modification of
Unblocked_Exit_Count after early return statements; fix typo in
comment.
gcc/ada/sem_ch5.adb