Minor reformatting.
From-SVN: r235747
This commit is contained in:
parent
a56886e9df
commit
c408fb34f9
@ -3977,7 +3977,7 @@ package body Exp_Ch6 is
|
||||
begin
|
||||
Inst := Scope (Subp);
|
||||
|
||||
-- Find enclosing instance.
|
||||
-- Find enclosing instance
|
||||
|
||||
while Present (Inst) and then Inst /= Standard_Standard loop
|
||||
exit when Is_Generic_Instance (Inst);
|
||||
@ -4002,11 +4002,11 @@ package body Exp_Ch6 is
|
||||
null;
|
||||
|
||||
else
|
||||
-- The instantiation node follows the package
|
||||
-- declaration for the instance. If the generic
|
||||
-- unit had aspect specifications, they have
|
||||
-- been transformed into pragmas in the instance,
|
||||
-- and the instance node appears after them.
|
||||
-- The instantiation node usually follows the package
|
||||
-- declaration for the instance. If the generic unit
|
||||
-- has aspect specifications, they are transformed
|
||||
-- into pragmas in the instance, and the instance node
|
||||
-- appears after them.
|
||||
|
||||
Inst_Node := Next (Decl);
|
||||
|
||||
|
@ -67,6 +67,7 @@ package body System.Memory is
|
||||
|
||||
function Alloc (Size : size_t) return System.Address is
|
||||
Result : System.Address;
|
||||
|
||||
begin
|
||||
if Parameters.No_Abort then
|
||||
Result := c_malloc (System.CRTL.size_t (Size));
|
||||
@ -77,6 +78,7 @@ package body System.Memory is
|
||||
end if;
|
||||
|
||||
if Result = System.Null_Address then
|
||||
|
||||
-- If Size = 0, we can't allocate 0 bytes, because then two different
|
||||
-- allocators, one of which has Size = 0, could return pointers that
|
||||
-- compare equal, which is wrong. (Nonnull pointers compare equal if
|
||||
|
Loading…
Reference in New Issue
Block a user