diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-03-20 18:01:04 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-17 08:25:42 +0000 |
commit | e2f7d58cda63c8764b0c55f13ddee3c9b114182e (patch) | |
tree | 473534785c8ff3ea06edcb494ac50c1ce07aba80 /gcc/ada/sem_ch3.adb | |
parent | 87a655842470b3f764f6809206d1236227c315d3 (diff) | |
download | gcc-e2f7d58cda63c8764b0c55f13ddee3c9b114182e.zip gcc-e2f7d58cda63c8764b0c55f13ddee3c9b114182e.tar.gz gcc-e2f7d58cda63c8764b0c55f13ddee3c9b114182e.tar.bz2 |
[Ada] Streamline implementation of Has_Compatible_Representation
The predicate is only concerned with the internal representation of types
and this representation is shared by the subtypes of a given type, so the
implementation can directly look into the (implementation) base types.
No functional changes.
gcc/ada/
* sem_ch13.ads (Has_Compatible_Representation): Minor tweaks.
* sem_ch13.adb (Has_Compatible_Representation): Look directly into
the (implementation) base types and simplifiy accordingly.
* exp_ch5.adb (Change_Of_Representation): Adjust.
* exp_ch6.adb (Expand_Actuals): Likewise.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions