Skip to content

Commit 2cdd754

Browse files
authored
Unrolled build for #144352
Rollup merge of #144352 - heiher:llvm-22, r=dianqk RustWrapper: Suppress getNextNonDebugInfoInstruction Link: llvm/llvm-project#144383
2 parents f32b232 + 23fda60 commit 2cdd754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ extern "C" void LLVMRustPositionBefore(LLVMBuilderRef B, LLVMValueRef Instr) {
16101610

16111611
extern "C" void LLVMRustPositionAfter(LLVMBuilderRef B, LLVMValueRef Instr) {
16121612
if (auto I = dyn_cast<Instruction>(unwrap<Value>(Instr))) {
1613-
auto J = I->getNextNonDebugInstruction();
1613+
auto J = I->getNextNode();
16141614
unwrap(B)->SetInsertPoint(J);
16151615
}
16161616
}

0 commit comments

Comments
 (0)