aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/treepr.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2021-06-28 20:02:20 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2021-09-20 12:31:37 +0000
commit2175b50b74dd03df45b4efb792029848c4a76381 (patch)
tree178a93d43acd58d98b39459ca33266ffd0b9dab2 /gcc/ada/treepr.adb
parent9613900aef1cdb5c5c3b867825b6295c0b00f4cc (diff)
downloadgcc-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/treepr.adb')
-rw-r--r--gcc/ada/treepr.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/treepr.adb b/gcc/ada/treepr.adb
index 054d06c..48f76cb 100644
--- a/gcc/ada/treepr.adb
+++ b/gcc/ada/treepr.adb
@@ -614,7 +614,7 @@ package body Treepr is
Write_Str (UI_Image (Val));
Write_Str (") ");
- if Val /= No_Uint then
+ if Present (Val) then
Write_Location (End_Location (N));
end if;
end Print_End_Span;