From: Reid Spencer Date: Wed, 16 Aug 2006 05:53:32 +0000 (+0000) Subject: Fix a thinko noticed by Chandler Carruth. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1014647e40020a67da79db6732168b7c7d85dbe0;p=oota-llvm.git Fix a thinko noticed by Chandler Carruth. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29724 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/GetElementPtr.html b/docs/GetElementPtr.html index 05d74e248e9..4e3c7611189 100644 --- a/docs/GetElementPtr.html +++ b/docs/GetElementPtr.html @@ -112,8 +112,9 @@

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 P will be the first operand of each - of these GEP instructions. The second operand will be the field offset into - the struct munger_struct type, for either the f1 or + of these GEP instructions. The second operand indexes through that pointer. + The third operand will be the field offset into the + struct munger_struct type, for either the f1 or f2 field. So, in LLVM assembly the munge function looks like: