[Ada] Simplify code by removing local constant
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 11 May 2021 14:53:36 +0000 (16:53 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 6 Jul 2021 14:46:58 +0000 (14:46 +0000)
commit435e79cbe51e8f7e587b9dc7da794e82fba55932
treef5261d70767f684c3ceacaec742dbabdf829b19c
parentb1c4989d174cb22297a88f8873be95430ad62bcd
[Ada] Simplify code by removing local constant

gcc/ada/

* uname.adb (Add_Node_Name): Replace local constant whose
initial expression was evaluated even when unnecessary with just
that expression that is evaluated at most once and only when
needed.
gcc/ada/uname.adb