summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-24 16:38:13 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-04-24 16:38:13 +0000
commit77abea0d6a2adea757903a547d553f467fa2858e (patch)
treeff05a835c0502e59befcc7a37577f3271f2dd537
parenta123b6421883a7f5bbfdb22bec37ecffaf192ddb (diff)
downloadbcm5719-llvm-77abea0d6a2adea757903a547d553f467fa2858e.tar.gz
bcm5719-llvm-77abea0d6a2adea757903a547d553f467fa2858e.zip
Fixed spaces and the getelementpointer example with i16 type indices.
llvm-svn: 69971
-rw-r--r--llvm/docs/LangRef.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 587f981665f..276c2e93969 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -3629,8 +3629,8 @@ the pointer before continuing calculation.</p>
<p>The type of each index argument depends on the type it is indexing into.
When indexing into a (packed) structure, only <tt>i32</tt> integer
<b>constants</b> are allowed. When indexing into an array, pointer or vector,
-only integers of 16, 32 or 64 bits are allowed (also non-constants).16-bit
-values will be sign extended to 32-bits if required, and 32-bit values
+only integers of 16, 32 or 64 bits are allowed (also non-constants). 16-bit
+values will be sign extended to 32-bits if required, and 32-bit values
will be sign extended to 64-bits if required.</p>
<p>For example, let's consider a C code fragment and how it gets
@@ -3719,7 +3719,7 @@ FAQ</a>.</p>
<i>; yields i8*:eptr</i>
%eptr = getelementptr [12 x i8]* %aptr, i64 0, i32 1
<i>; yields i16*:iptr</i>
- %iptr = getelementptr [10 x i16]* @arr, i16 0, i16 0
+ %iptr = getelementptr [10 x i32]* @arr, i16 0, i16 0
</pre>
</div>
OpenPOWER on IntegriCloud