Fix a thinko noticed by Chandler Carruth.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 16 Aug 2006 05:53:32 +0000 (05:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 16 Aug 2006 05:53:32 +0000 (05:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29724 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GetElementPtr.html

index 05d74e248e93bd1630cf71bf4e2d2c79b5430589..4e3c7611189165225d8f89770f758181e58b111b 100644 (file)
   <p>In this "C" example, the front end compiler (llvm-gcc) will generate three
   GEP instructions for the three indices through "P" in the assignment
   statement.  The function argument <tt>P</tt> will be the first operand of each
-  of these GEP instructions.  The second operand will be the field offset into
-  the <tt>struct munger_struct</tt> type,  for either the <tt>f1</tt> or 
+  of these GEP instructions.  The second operand indexes through that pointer.
+  The third operand will be the field offset into the 
+  <tt>struct munger_struct</tt> type,  for either the <tt>f1</tt> or 
   <tt>f2</tt> field. So, in LLVM assembly the <tt>munge</tt> function looks 
   like:</p>
   <pre>