ada: Avoid repeated calls when looking for first/last slocs of a node
commit014f7f3a7075be6e6d02186f4aad53200ebaafa8
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 9 Feb 2023 18:20:14 +0000 (9 19:20 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 22 May 2023 08:46:13 +0000 (22 10:46 +0200)
tree2adabb04bfd2fb68e9c8a447068beed21fd22a8b
parent8911204d4ab366d61c24ed8da9557fcf4c40e4bc
ada: Avoid repeated calls when looking for first/last slocs of a node

gcc/ada/

* errout.adb (First_Loc): Avoid repeated calls.
(Last_Loc): Likewise.
gcc/ada/errout.adb