mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 14:40:39 +00:00
Fix validation problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fdf87ff90
commit
4a5dfeeeaa
@ -88,8 +88,8 @@
|
||||
<pre>
|
||||
X = &Foo[0].F;</pre>
|
||||
<p>Sometimes this question gets rephrased as:</p>
|
||||
<blockquote><i>Why is it okay to index through the first pointer, but
|
||||
subsequent pointers won't be dereferenced?</i></blockquote>
|
||||
<blockquote><p><i>Why is it okay to index through the first pointer, but
|
||||
subsequent pointers won't be dereferenced?</i></p></blockquote>
|
||||
<p>The answer is simply because memory does not have to be accessed to
|
||||
perform the computation. The first operand to the GEP instruction must be a
|
||||
value of a pointer type. The value of the pointer is provided directly to
|
||||
|
Loading…
Reference in New Issue
Block a user