about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-07-28 08:45:28 +0200
committerGitHub <noreply@github.com>2025-07-28 08:45:28 +0200
commit466198cfaf2ea988a98aee08df10ed1198a3874a (patch)
treee9c9a7f48ae84ba9e277f06252ebdfbe076694e9 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9c99623b8ade68ae07a6226018732f2512526d34 (diff)
parent645b85e3d508123d45d79dc6e526a06648666c68 (diff)
downloadrust-466198cfaf2ea988a98aee08df10ed1198a3874a.tar.gz
rust-466198cfaf2ea988a98aee08df10ed1198a3874a.zip
Merge pull request #2519 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp2
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);
   }
 }