Skip to content

Commit

Permalink
Surrounded variable in <tt> tags for consistency.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79357 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mbrukman committed Aug 18, 2009
1 parent 323a3e6 commit fc13d1c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/GetElementPtr.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,14 @@
</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>

<!-- *********************************************************************** -->
Expand Down

0 comments on commit fc13d1c

Please sign in to comment.