summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-08-18 19:18:40 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-08-18 19:18:40 +0000
commitf87bb005617c0b675174dbf6650152d776a94f39 (patch)
tree8a998048251e260d29b7f8b8e8ede78c8ccd8b03 /llvm/docs
parent3828a99ba66a8eceec9a6b29a6912f654baaa533 (diff)
downloadbcm5719-llvm-f87bb005617c0b675174dbf6650152d776a94f39.tar.gz
bcm5719-llvm-f87bb005617c0b675174dbf6650152d776a94f39.zip
Surrounded variable in <tt> tags for consistency.
llvm-svn: 79357
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/GetElementPtr.html15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/docs/GetElementPtr.html b/llvm/docs/GetElementPtr.html
index 0684b2c78ae..752568f831e 100644
--- a/llvm/docs/GetElementPtr.html
+++ b/llvm/docs/GetElementPtr.html
@@ -303,13 +303,14 @@ idx3 = (char*) &amp;MyVar + 8
</div>
<p>In this example, <tt>idx1</tt> computes the address of the second integer
- in the array that is in the structure in %MyVar, that is <tt>MyVar+4</tt>. The
- type of <tt>idx1</tt> is <tt>i32*</tt>. However, <tt>idx2</tt> computes the
- address of <i>the next</i> structure after <tt>%MyVar</tt>. The type of
- <tt>idx2</tt> is <tt>{ [10 x i32] }*</tt> and its value is equivalent
- to <tt>MyVar + 40</tt> because it indexes past the ten 4-byte integers
- in <tt>MyVar</tt>. Obviously, in such a situation, the pointers don't
- alias.</p>
+ in the array that is in the structure in <tt>%MyVar</tt>, that is
+ <tt>MyVar+4</tt>. The type of <tt>idx1</tt> is <tt>i32*</tt>. However,
+ <tt>idx2</tt> computes the address of <i>the next</i> structure after
+ <tt>%MyVar</tt>. The type of <tt>idx2</tt> is <tt>{ [10 x i32] }*</tt> and its
+ value is equivalent to <tt>MyVar + 40</tt> because it indexes past the ten
+ 4-byte integers in <tt>MyVar</tt>. Obviously, in such a situation, the
+ pointers don't alias.</p>
+
</div>
<!-- *********************************************************************** -->
OpenPOWER on IntegriCloud