ada: Reduce span of variable
commitbc46312fe9088b16a39303db54d49b43165dec4b
authorRonan Desplanques <desplanques@adacore.com>
Fri, 3 Mar 2023 11:33:21 +0000 (3 12:33 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 25 May 2023 07:44:16 +0000 (25 09:44 +0200)
treee3615a3cebbe1f65b64d58b8cf99659cd08b8286
parentcf6ddb553085c74d75eabac7be9dbc82dda87f0a
ada: Reduce span of variable

This patch does not change the behavior of the compiler, but is
intended to improve readability. It seizes an opportunity to move
a variable declaration to a smaller scope, so that it's clearer
that the variable is not used outside of that scope.

gcc/ada/

* sem_ch3.adb (Replace_Type): Reduce span of variable.
gcc/ada/sem_ch3.adb