aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch6.adb
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2023-03-04 15:02:32 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-25 09:44:16 +0200
commitc7b84ce699965738b0f2f2d15039c716255f7588 (patch)
tree0e2a084e5758b6a7011dccc53c35feef5a6ccfc9 /gcc/ada/sem_ch6.adb
parent78203700fac6e7e39f5a31e892963172263f8239 (diff)
downloadgcc-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_ch6.adb')
0 files changed, 0 insertions, 0 deletions