[Ada] Avoid potentially repeated calls to Prefix in Eval_Slice
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 29 Sep 2020 10:40:39 +0000 (12:40 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:52 +0000 (03:39 -0500)
commitbc0c82e99485589937789888e4bd7275c236b3be
treebc2c2d6f8ef8f2ebfd0b9f0551f601b60441d808
parent81c629f8f12765f9b1bf29ecfef7f32f5189723c
[Ada] Avoid potentially repeated calls to Prefix in Eval_Slice

gcc/ada/

* sem_eval.adb (Eval_Slice): Refactor repeated calls to Prefix
with a local constant (named just like in Resolve_Slice).
gcc/ada/sem_eval.adb