Skip to content

Commit

Permalink
Merge pull request #64 from wokron/tony--fix-bad-gep
Browse files Browse the repository at this point in the history
修正错误的 GEP 指令示例
  • Loading branch information
XingZiiii authored Dec 13, 2024
2 parents 9e96aed + 0dd1f71 commit d9f8dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/07-ir-generation-1-llvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ LVal → Ident {'[' Exp ']'}
%1 = getelementptr [5 x i32], [5 x i32]* @a, i32 0, i32 3
; 方法二
%2 = getelementptr [5 x i32], [5 x i32]* @a, i32 0
%2 = getelementptr [5 x i32], [5 x i32]* @a, i32 0, i32 0
%3 = getelementptr i32, i32* %2, i32 3
```
Expand Down

0 comments on commit d9f8dbc

Please sign in to comment.