diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2023-03-04 15:02:32 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-25 09:44:16 +0200 |
commit | c7b84ce699965738b0f2f2d15039c716255f7588 (patch) | |
tree | 0e2a084e5758b6a7011dccc53c35feef5a6ccfc9 /gcc/ada/sem_res.adb | |
parent | 78203700fac6e7e39f5a31e892963172263f8239 (diff) | |
download | gcc-c7b84ce699965738b0f2f2d15039c716255f7588.zip gcc-c7b84ce699965738b0f2f2d15039c716255f7588.tar.gz gcc-c7b84ce699965738b0f2f2d15039c716255f7588.tar.bz2 |
ada: Small tweak to implementation of by-copy semantics for storage models
Get_Actual_Subtype can be used to access the Actual_Designated_Subtype of
explicit dereferences with a storage model. As a side effect, this also
handles the case where the prefix of the dereference is a formal parameter.
gcc/ada/
* exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Use Get_Actual_Subtype
to retrieve the actual subtype for all actuals and do it in only one
place for all unconstrained composite formal types.
Diffstat (limited to 'gcc/ada/sem_res.adb')
0 files changed, 0 insertions, 0 deletions