Commit 51e4c4b9 by Arnaud Charlet

exp_ch4.adb (Expand_Allocator_Expression): add check if null exclusion indicator is present

2008-08-08  Ed Schonberg  <schonberg@adacore.com>

	* exp_ch4.adb (Expand_Allocator_Expression): add check if null
	exclusion indicator is present

From-SVN: r138870
parent 11f746c6
2008-08-08 Ed Schonberg <schonberg@adacore.com>
* exp_ch4.adb (Expand_Allocator_Expression): add check if null
exclusion indicator is present
2008-08-08 Robert Dewar <dewar@adacore.com>
* g-comlin.adb: Minor code reorganization
Minor reformatting
* g-comlin.ads: Minor reformatting
* s-fileio.adb: Minor reformatting
* sem_attr.adb: Minor code reorganization (use Nkind_In)
Minor reformatting
2008-08-06 Samuel Tardieu <sam@rfc1149.net>
* gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
......@@ -944,6 +944,11 @@ package body Exp_Ch4 is
Rewrite (N, New_Reference_To (Temp, Loc));
Analyze_And_Resolve (N, PtrT);
elsif Is_Access_Type (T)
and then Can_Never_Be_Null (T)
then
Install_Null_Excluding_Check (Exp);
elsif Is_Access_Type (DesigT)
and then Nkind (Exp) = N_Allocator
and then Nkind (Expression (Exp)) /= N_Qualified_Expression
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment