diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-26 01:15:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 01:15:08 -0500 |
| commit | 2671afeb9e54cf70673995a4801258e26f672db6 (patch) | |
| tree | bce4b944c407916881a204d41063fb85adb8c1dc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | a262dadc4022b86592ca9b62642413bcf3e9b117 (diff) | |
| parent | 23fda6084b5e9a618b74a9c417f5353783b72ae9 (diff) | |
| download | rust-2671afeb9e54cf70673995a4801258e26f672db6.tar.gz rust-2671afeb9e54cf70673995a4801258e26f672db6.zip | |
Rollup merge of #144352 - heiher:llvm-22, r=dianqk
RustWrapper: Suppress getNextNonDebugInfoInstruction Link: https://github.com/llvm/llvm-project/pull/144383
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 82568ed4ae1..c9814beedd6 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -1610,7 +1610,7 @@ extern "C" void LLVMRustPositionBefore(LLVMBuilderRef B, LLVMValueRef Instr) { extern "C" void LLVMRustPositionAfter(LLVMBuilderRef B, LLVMValueRef Instr) { if (auto I = dyn_cast<Instruction>(unwrap<Value>(Instr))) { - auto J = I->getNextNonDebugInstruction(); + auto J = I->getNextNode(); unwrap(B)->SetInsertPoint(J); } } |
