Skip to content

Commit 2c5a93e

Browse files
[Docs] Fix GEP type in example
1 parent 8763343 commit 2c5a93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/GetElementPtr.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ fine:
200200
201201
@MyVar = external global { i32, [40 x i32 ] }
202202
...
203-
%idx = getelementptr { [40 x i32] }, ptr @MyVal, i64 0, i32 1, i64 17
203+
%idx = getelementptr { i32, [40 x i32] }, ptr @MyVar, i64 0, i32 1, i64 17
204204
205205
In this case, the structure does not contain a pointer and the GEP instruction
206206
can index through the global variable, into the second field of the structure

0 commit comments

Comments
 (0)