diff options
| author | WANG Rui <wangrui@loongson.cn> | 2025-07-23 17:29:59 +0800 |
|---|---|---|
| committer | WANG Rui <wangrui@loongson.cn> | 2025-07-23 22:09:16 +0800 |
| commit | 23fda6084b5e9a618b74a9c417f5353783b72ae9 (patch) | |
| tree | 95c393d717a45c31d4be2213b544b409d6d7e14c | |
| parent | 20aa182235d6b27ecee519f1d18ee30f0d1c4a61 (diff) | |
| download | rust-23fda6084b5e9a618b74a9c417f5353783b72ae9.tar.gz rust-23fda6084b5e9a618b74a9c417f5353783b72ae9.zip | |
RustWrapper: Suppress getNextNonDebugInfoInstruction
Link: https://github.com/llvm/llvm-project/pull/144383
| -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); } } |
