[Ada] Consistently use Validated_View for Valid_Scalars on records

gcc/ada/

	* exp_attr.adb (Expand_N_Attribute_Reference): Explicitly use
	Validated_View for record objects.
This commit is contained in:
Piotr Trojanek 2021-04-07 10:16:55 +02:00 committed by Pierre-Marie de Rodat
parent 6df6055d5c
commit 10215ba9d7

View File

@ -7460,7 +7460,7 @@ package body Exp_Attr is
(Build_Record_VS_Func
(Attr => N,
Formal_Typ => Ptyp,
Rec_Typ => Val_Typ),
Rec_Typ => Validated_View (Ptyp)),
Loc),
Parameter_Associations => New_List (Pref));
end if;