From 3453f29f654a8ef045b02f73c10558e32115ae01 Mon Sep 17 00:00:00 2001
From: Gabor Greif
Date: Sat, 9 Feb 2008 22:24:34 +0000
Subject: [PATCH] explain that NumElements in alloca and malloc defaults to one
llvm-svn: 46912
---
docs/LangRef.html | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 90ba0cc058f..d9d5ca83735 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2760,10 +2760,10 @@ address space (address space zero).
sizeof(<type>)*NumElements
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. If an 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.
+number of elements allocated, otherwise "NumElements" is defaulted to be one.
+If an 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.
'type' must be a sized type.
@@ -2846,11 +2846,11 @@ space (address space zero).
The 'alloca' instruction allocates sizeof(<type>)*NumElements
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. If an 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.
+appropriate type to the program. If "NumElements" is specified, it is the
+number of elements allocated, otherwise "NumElements" is defaulted to be one.
+If an 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.
'type' may be any sized type.