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>
|
||||
|
||||
<p>Note that it is undefined to access an array out of bounds: array and
|
||||
pointer indexes must always be within the defined bounds of the array type.
|
||||
The one exception for 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>Note that it is undefined to access an array out of bounds: array
|
||||
and pointer indexes must always be within the defined bounds of the
|
||||
array type when accessed with an instruction that dereferences the
|
||||
pointer (e.g. a load or store instruction). The one exception for
|
||||
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
|
||||
into how it works, see <a href="GetElementPtr.html">the getelementptr
|
||||
|
Loading…
x
Reference in New Issue
Block a user