diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-16 05:53:32 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-16 05:53:32 +0000 |
| commit | 9d121b089792578a51209e6c8918cef130cfb66a (patch) | |
| tree | c9fd247ab24f0a26e0826150b8d754ebd301b0fc | |
| parent | a9a2b144b953624d7463f1795e8b6b3a7be8d8ad (diff) | |
| download | bcm5719-llvm-9d121b089792578a51209e6c8918cef130cfb66a.tar.gz bcm5719-llvm-9d121b089792578a51209e6c8918cef130cfb66a.zip | |
Fix a thinko noticed by Chandler Carruth.
llvm-svn: 29724
| -rw-r--r-- | llvm/docs/GetElementPtr.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/docs/GetElementPtr.html b/llvm/docs/GetElementPtr.html index 05d74e248e9..4e3c7611189 100644 --- a/llvm/docs/GetElementPtr.html +++ b/llvm/docs/GetElementPtr.html @@ -112,8 +112,9 @@ <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> |

