Skip to content

Commit 1743c5b

Browse files
committed
Only emit gep not gepi
1 parent 78a7751 commit 1743c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
777777
indices: &[&'ll Value],
778778
) -> &'ll Value {
779779
unsafe {
780-
llvm::LLVMBuildInBoundsGEP2(
780+
llvm::LLVMBuildGEP2(
781781
self.llbuilder,
782782
ty,
783783
ptr,

0 commit comments

Comments
 (0)