1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fixed the gep example for i16 type indices.

llvm-svn: 70019
This commit is contained in:
Sanjiv Gupta 2009-04-25 07:27:44 +00:00
parent 162870a4b3
commit 9093a67350

View File

@ -3718,7 +3718,7 @@ FAQ</a>.</p>
%vptr = getelementptr {i32, &lt;2 x i8&gt;}* %svptr, i64 0, i32 1, i32 1
<i>; yields i8*:eptr</i>
%eptr = getelementptr [12 x i8]* %aptr, i64 0, i32 1
<i>; yields i16*:iptr</i>
<i>; yields i32*:iptr</i>
%iptr = getelementptr [10 x i32]* @arr, i16 0, i16 0
</pre>
</div>