summaryrefslogtreecommitdiff
path: root/docs/GetElementPtr.rst
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-12-06 21:12:35 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-12-06 21:12:35 +0000
commitb553f8960a700da0ebab13472350faff9462598d (patch)
tree84d812298a78ea7ebfab45e4af25747eb6b259d8 /docs/GetElementPtr.rst
parent091508d3d0b0ebe0216b73b30161fbc599f9d4f1 (diff)
downloadllvm-b553f8960a700da0ebab13472350faff9462598d.tar.gz
llvm-b553f8960a700da0ebab13472350faff9462598d.tar.bz2
llvm-b553f8960a700da0ebab13472350faff9462598d.tar.xz
Documentation: fix typos and formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/GetElementPtr.rst')
-rw-r--r--docs/GetElementPtr.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/GetElementPtr.rst b/docs/GetElementPtr.rst
index f6f904b2e3..3b57d78cf1 100644
--- a/docs/GetElementPtr.rst
+++ b/docs/GetElementPtr.rst
@@ -22,7 +22,7 @@ Address Computation
When people are first confronted with the GEP instruction, they tend to relate
it to known concepts from other programming paradigms, most notably C array
indexing and field selection. GEP closely resembles C array indexing and field
-selection, however it's is a little different and this leads to the following
+selection, however it is a little different and this leads to the following
questions.
What is the first index of the GEP instruction?
@@ -190,7 +190,7 @@ In this example, we have a global variable, ``%MyVar`` that is a pointer to a
structure containing a pointer to an array of 40 ints. The GEP instruction seems
to be accessing the 18th integer of the structure's array of ints. However, this
is actually an illegal GEP instruction. It won't compile. The reason is that the
-pointer in the structure <i>must</i> be dereferenced in order to index into the
+pointer in the structure *must* be dereferenced in order to index into the
array of 40 ints. Since the GEP instruction never accesses memory, it is
illegal.
@@ -416,7 +416,7 @@ arithmetic, and inttoptr sequences.
Can I compute the distance between two objects, and add that value to one address to compute the other address?
---------------------------------------------------------------------------------------------------------------
-As with arithmetic on null, You can use GEP to compute an address that way, but
+As with arithmetic on null, you can use GEP to compute an address that way, but
you can't use that pointer to actually access the object if you do, unless the
object is managed outside of LLVM.