[Ada] Cleanup expansion of attribute Constrained
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 6 Oct 2020 09:58:45 +0000 (11:58 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:04 +0000 (05:16 -0500)
commit3a6fa9a81bdbd5491204e68b2ad5a5d8516d56a1
treefc14b46b614d49474e91dba2bc944564165e15ee
parent1b55b8d70f431e29131cc7ca5790490d95625bd0
[Ada] Cleanup expansion of attribute Constrained

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Replace calls to
Sloc with a local constant Loc; remove call to
Analyze_And_Resolve and return, which is exactly what happens
anyway (and other branches in the Constrained declare block
appear to rely on analysis, resolution and returning happening
in all cases).
* sem_util.adb: Remove useless parens.
gcc/ada/exp_attr.adb
gcc/ada/sem_util.adb