[llvm] [Docs] Fix GEP type in example (PR #68533)

Mariusz Sikora via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 8 13:43:34 PDT 2023


================
@@ -200,7 +200,7 @@ fine:
 
   @MyVar = external global { i32, [40 x i32 ] }
   ...
-  %idx = getelementptr { [40 x i32] }, ptr @MyVal, i64 0, i32 1, i64 17
+  %idx = getelementptr { i32, [40 x i32] }, ptr @MyVal, i64 0, i32 1, i32 0, i64 17
----------------
mariusz-sikora-at-amd wrote:

OK, my mistake. Example in paragraph `Why don’t GEP x,0,0,1 and GEP x,1 alias?` is good.

https://github.com/llvm/llvm-project/pull/68533


More information about the llvm-commits mailing list