[Ada] Simplify processing of 'Valid_Scalars on array types
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 27 Apr 2020 09:14:31 +0000 (11:14 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:10 +0000 (04:17 -0400)
commita4dafb8b92e00e2f783bf8915b17f1f450eff227
tree1a666e633d620d85f2080e45587f6123278fe2c0
parent66bd7af5cca12b8f0470d1e8cf347ae2de1e928f
[Ada] Simplify processing of 'Valid_Scalars on array types

2020-06-19  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Do not call
Scalar_Part_Present on the array component's type.
(Build_Array_VS_Func): Remove Comp_Typ parameter, because it can
be easily computed from the Array_Top parameter *and redundant
parameters are confusing and error-prone).
gcc/ada/exp_attr.adb