1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Where the alloca'd space actually lives in ram is undefined, and attempting to

pin it down is undefined behaviour.

llvm-svn: 151710
This commit is contained in:
Nick Lewycky 2012-02-29 08:26:44 +00:00
parent e9705e2949
commit d3435f85b4

View File

@ -4859,7 +4859,12 @@ IfUnequal:
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_resume">resume</a></tt> instructions), the memory is
reclaimed. Allocating zero bytes is legal, but the result is undefined.</p>
reclaimed. Allocating zero bytes is legal, but the result is undefined.
The order in which memory is allocated (ie., which way the stack grows) is
not specified, and relational comparisons involving '<tt>alloca</tt>'s are
undefined.</p>
<p>
<h5>Example:</h5>
<pre>