summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_util.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-20 11:44:38 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-20 11:44:38 +0000
commit230561956489dd72b12dd8431e38af088d87034f (patch)
treed06e519d8c8b9d58bb516dcf9e6b61bd73b2ca37 /gcc/ada/exp_util.adb
parent472ea1606da75c8cfa737734f05f393119e60fa0 (diff)
downloadgcc-230561956489dd72b12dd8431e38af088d87034f.tar.gz
2011-11-20 Robert Dewar <dewar@adacore.com>
* exp_ch6.adb, exp_util.adb: Minor reformatting 2011-11-20 Eric Botcazou <ebotcazou@adacore.com> * sinfo.ads (Reference): Document that it is OK to set Is_Known_Non_Null on a temporary initialized to a N_Reference node. 2011-11-20 Matthew Heaney <heaney@adacore.com> * a-cbdlli.adb, a-cfdlli.adb (Move): Set Last component to 0 for Source list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_util.adb')
-rw-r--r--gcc/ada/exp_util.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb
index 56a6f20ed19..37a1be0e478 100644
--- a/gcc/ada/exp_util.adb
+++ b/gcc/ada/exp_util.adb
@@ -6710,6 +6710,10 @@ package body Exp_Util is
if Alfa_Mode then
New_Exp := E;
+
+ -- Otherwise generate reference, marking the value as non-null
+ -- since we know it cannot be null and we don't want a check.
+
else
New_Exp := Make_Reference (Loc, E);
Set_Is_Known_Non_Null (Def_Id);