diff options
author | Bob Duff <duff@adacore.com> | 2021-06-28 20:02:20 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-09-20 12:31:37 +0000 |
commit | 2175b50b74dd03df45b4efb792029848c4a76381 (patch) | |
tree | 178a93d43acd58d98b39459ca33266ffd0b9dab2 /gcc/ada/sem_attr.adb | |
parent | 9613900aef1cdb5c5c3b867825b6295c0b00f4cc (diff) | |
download | gcc-2175b50b74dd03df45b4efb792029848c4a76381.zip gcc-2175b50b74dd03df45b4efb792029848c4a76381.tar.gz gcc-2175b50b74dd03df45b4efb792029848c4a76381.tar.bz2 |
[Ada] Present and No functions for type Uint
gcc/ada/
* uintp.ads, uintp.adb (Present, No): New functions for
comparing with No_Uint.
* checks.adb, einfo-utils.adb, exp_aggr.adb, exp_attr.adb,
exp_ch3.adb, exp_ch4.adb, exp_dbug.adb, exp_disp.adb,
exp_util.adb, repinfo.adb, repinfo-input.adb, scn.adb,
sem_attr.adb, sem_ch13.adb, sem_eval.adb, sem_util.adb,
sinfo-utils.adb, treepr.adb: Use Present (...) instead of "...
/= No_Uint", and No (...) instead of "... = No_Uint".
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r-- | gcc/ada/sem_attr.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index e37b61a..9540089 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -9189,7 +9189,7 @@ package body Sem_Attr is Fold_Uint (N, Uint_0, Static); when LT => - if Diff /= No_Uint then + if Present (Diff) then Fold_Uint (N, Diff + 1, Static); end if; @@ -9710,7 +9710,7 @@ package body Sem_Attr is Fold_Uint (N, Uint_0, Static); when LT => - if Diff /= No_Uint then + if Present (Diff) then Fold_Uint (N, Diff + 1, Static); end if; |