summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-03-27 01:38:48 +0000
committerReid Kleckner <reid@kleckner.net>2014-03-27 01:38:48 +0000
commit2f8e3001e03977ed2a7c3debe34875aaa335e77a (patch)
treebac2d688267a34325cf4a52dc308cc2415d37405 /llvm
parenta4b6a6257d5794f3085cd56f9668dd57b31543e6 (diff)
downloadbcm5719-llvm-2f8e3001e03977ed2a7c3debe34875aaa335e77a.tar.gz
bcm5719-llvm-2f8e3001e03977ed2a7c3debe34875aaa335e77a.zip
inalloca: *Really* fix the docs
llvm-svn: 204890
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/InAlloca.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/docs/InAlloca.rst b/llvm/docs/InAlloca.rst
index 8bc83d8622f..c7609cddb4f 100644
--- a/llvm/docs/InAlloca.rst
+++ b/llvm/docs/InAlloca.rst
@@ -5,8 +5,6 @@ Design and Usage of the InAlloca Attribute
Introduction
============
-.. Warning:: This feature is unstable and not fully implemented.
-
The :ref:`inalloca <attr_inalloca>` attribute is designed to allow
taking the address of an aggregate argument that is being passed by
value through memory. Primarily, this feature is required for
@@ -54,11 +52,11 @@ that passes two default-constructed ``Foo`` objects to ``g`` in the
entry:
%base = call i8* @llvm.stacksave()
%memargs = alloca <{ %struct.Foo, %struct.Foo }>
- %b = getelementptr <{ %struct.Foo, %struct.Foo }>*, i32 1
+ %b = getelementptr <{ %struct.Foo, %struct.Foo }>* %memargs, i32 1
call void @Foo_ctor(%struct.Foo* %b)
; If a's ctor throws, we must destruct b.
- %a = getelementptr <{ %struct.Foo, %struct.Foo }>*, i32 0
+ %a = getelementptr <{ %struct.Foo, %struct.Foo }>* %memargs, i32 0
invoke void @Foo_ctor(%struct.Foo* %a)
to label %invoke.cont unwind %invoke.unwind
OpenPOWER on IntegriCloud