diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-03-27 01:38:48 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-03-27 01:38:48 +0000 |
commit | 7d3c316353d800381c5ba7b4451674496e6ce5f0 (patch) | |
tree | 8f6e2ac0a5f8e7d8a5774d32b78a5e075dfd712b /docs | |
parent | b1d0dd95ee1134bda31906b06347d357bcb76452 (diff) | |
download | llvm-7d3c316353d800381c5ba7b4451674496e6ce5f0.tar.gz llvm-7d3c316353d800381c5ba7b4451674496e6ce5f0.tar.bz2 llvm-7d3c316353d800381c5ba7b4451674496e6ce5f0.tar.xz |
inalloca: *Really* fix the docs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/InAlloca.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/InAlloca.rst b/docs/InAlloca.rst index 8bc83d8622..c7609cddb4 100644 --- a/docs/InAlloca.rst +++ b/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 |