mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Clarify wording, patch by Stefanus Du Toit!
llvm-svn: 66458
This commit is contained in:
parent
f0b46d438a
commit
952dfa96b7
@ -3637,11 +3637,13 @@ the LLVM code for the given testcase is equivalent to:</p>
|
|||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>Note that it is undefined to access an array out of bounds: array and
|
<p>Note that it is undefined to access an array out of bounds: array
|
||||||
pointer indexes must always be within the defined bounds of the array type.
|
and pointer indexes must always be within the defined bounds of the
|
||||||
The one exception for this rule is zero length arrays. These arrays are
|
array type when accessed with an instruction that dereferences the
|
||||||
defined to be accessible as variable length arrays, which requires access
|
pointer (e.g. a load or store instruction). The one exception for
|
||||||
beyond the zero'th element.</p>
|
this rule is zero length arrays. These arrays are defined to be
|
||||||
|
accessible as variable length arrays, which requires access beyond the
|
||||||
|
zero'th element.</p>
|
||||||
|
|
||||||
<p>The getelementptr instruction is often confusing. For some more insight
|
<p>The getelementptr instruction is often confusing. For some more insight
|
||||||
into how it works, see <a href="GetElementPtr.html">the getelementptr
|
into how it works, see <a href="GetElementPtr.html">the getelementptr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user