From 2ca30e915fcf9f68b25e9c2f912e3b4da3a335ae Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Mon, 29 Jan 2024 20:19:14 -0500 Subject: [PATCH] Only emit gep not gepi --- compiler/rustc_codegen_llvm/src/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 7ed27b33dceaa..69faa9401d5a3 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -727,7 +727,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { indices: &[&'ll Value], ) -> &'ll Value { unsafe { - llvm::LLVMBuildInBoundsGEP2( + llvm::LLVMBuildGEP2( self.llbuilder, ty, ptr,