mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
Correct a detail with the alloca instruction.
Functions do not exit with invoke; they exit with unwind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45982dad53
commit
dae2e9383b
@ -1837,7 +1837,7 @@ a shorter version of the first that defaults to allocating one element.</p>
|
||||
memory is automatically released when the function returns. The '<tt>alloca</tt>'
|
||||
instruction is commonly used to represent automatic variables that must
|
||||
have an address available. When the function returns (either with the <tt><a
|
||||
href="#i_ret">ret</a></tt> or <tt><a href="#i_invoke">invoke</a></tt>
|
||||
href="#i_ret">ret</a></tt> or <tt><a href="#i_unwind">unwind</a></tt>
|
||||
instructions), the memory is reclaimed.</p>
|
||||
<h5>Example:</h5>
|
||||
<pre> %ptr = alloca int <i>; yields {int*}:ptr</i>
|
||||
|
Loading…
Reference in New Issue
Block a user