From: Duncan Sands
Date: Sat, 20 Jun 2009 13:26:06 +0000 (+0000)
Subject: Clarify that if the alignment is zero then an alignment
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=434ca80b31c6bd44545713d7cf20e53fe4861b4e;p=oota-llvm.git
Clarify that if the alignment is zero then an alignment
compatible with the type will be used (at least the ABI
alignment).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73827 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/LangRef.html b/docs/LangRef.html
index de31e35674b..c57518befc0 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -3532,9 +3532,10 @@ address space (address space zero).
bytes of memory from the operating system and returns a pointer of the
appropriate type to the program. If "NumElements" is specified, it is the
number of elements allocated, otherwise "NumElements" is defaulted to be one.
-If a constant alignment is specified, the value result of the allocation is guaranteed to
-be aligned to at least that boundary. If not specified, or if zero, the target can
-choose to align the allocation on any convenient boundary.
+If a constant alignment is specified, the value result of the allocation is
+guaranteed to be aligned to at least that boundary. If not specified, or if
+zero, the target can choose to align the allocation on any convenient boundary
+compatible with the type.
'type' must be a sized type.
@@ -3625,9 +3626,10 @@ space (address space zero).
bytes of memory on the runtime stack, returning a pointer of the
appropriate type to the program. If "NumElements" is specified, it is the
number of elements allocated, otherwise "NumElements" is defaulted to be one.
-If a constant alignment is specified, the value result of the allocation is guaranteed
-to be aligned to at least that boundary. If not specified, or if zero, the target
-can choose to align the allocation on any convenient boundary.
+If a constant alignment is specified, the value result of the allocation is
+guaranteed to be aligned to at least that boundary. If not specified, or if
+zero, the target can choose to align the allocation on any convenient boundary
+compatible with the type.
'type' may be any sized type.