Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Evian-Zhang committed Jan 31, 2024
1 parent 925d8c6 commit bbd6eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/04-类型系统.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct MyStruct my_structs[4];
}
%my_structs = alloca [4 x %MyStruct]
%1 = getelementptr [4 x %MyStruct], ptr %my_structs, i64 2, i32 1, i64 3
%1 = getelementptr %MyStruct, ptr %my_structs, i64 2, i32 1, i64 3
```

我们可以查看官方提供的[The Often Misunderstood GEP Instruction](http://llvm.org/docs/GetElementPtr.html)指南更多地了解`getelementptr`的机理。
Expand Down

0 comments on commit bbd6eb0

Please sign in to comment.