Skip to content

Commit 23fda60

Browse files
committed
RustWrapper: Suppress getNextNonDebugInfoInstruction
Link: llvm/llvm-project#144383
1 parent 20aa182 commit 23fda60

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)