Skip to content

Commit dcfa484

Browse files
committed
Only emit gep not gepi
1 parent eaff1af commit dcfa484

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
@@ -727,7 +727,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
727727
indices: &[&'ll Value],
728728
) -> &'ll Value {
729729
unsafe {
730-
llvm::LLVMBuildInBoundsGEP2(
730+
llvm::LLVMBuildGEP2(
731731
self.llbuilder,
732732
ty,
733733
ptr,

0 commit comments

Comments
 (0)