[Ada] Reduce scopes of local variables for case and if statements
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 1 Dec 2020 14:18:34 +0000 (15:18 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Dec 2020 10:49:24 +0000 (05:49 -0500)
commit445032728dd46e3692a9aed879c6cf350259a53a
treedd8295c90c06c0e12fac6921babc3b50e5690e84
parent7948214670c90dfdb656b7c71779745776f74f41
[Ada] Reduce scopes of local variables for case and if statements

gcc/ada/

* sem_ch5.adb (Analyze_Case_Statement): Change local variable
Exp to constant; remove unreferenced Last_Choice variable;
reduce scope of other variables.
(Analyze_If_Statement): Reduce scope of a local variable; add
comment.
gcc/ada/sem_ch5.adb