[llvm] [DirectX] Replace `getNextNonDebugInstruction` with `getNextNode` (PR #148890)
Deric C. via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 09:55:54 PDT 2025
https://github.com/Icohedron created https://github.com/llvm/llvm-project/pull/148890
Fixes the DirectX backend build failure due to #144383
>From 265dddef5fb4c8d595622b0a6dd2264487191ce7 Mon Sep 17 00:00:00 2001
From: Deric Cheung <dericcheung at microsoft.com>
Date: Tue, 15 Jul 2025 16:53:40 +0000
Subject: [PATCH] Replace Instruction::getNextNonDebugInstruction with
Instruction::getNextNode
---
llvm/lib/Target/DirectX/DXILDataScalarization.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/DirectX/DXILDataScalarization.cpp b/llvm/lib/Target/DirectX/DXILDataScalarization.cpp
index cfe270d432144..d9d9b36d0b739 100644
--- a/llvm/lib/Target/DirectX/DXILDataScalarization.cpp
+++ b/llvm/lib/Target/DirectX/DXILDataScalarization.cpp
@@ -202,7 +202,7 @@ DataScalarizerVisitor::createArrayFromVector(IRBuilder<> &Builder, Value *Vec,
// original vector's defining instruction if available, else immediately after
// the alloca
if (auto *Instr = dyn_cast<Instruction>(Vec))
- Builder.SetInsertPoint(Instr->getNextNonDebugInstruction());
+ Builder.SetInsertPoint(Instr->getNextNode());
SmallVector<Value *, 4> GEPs(ArrNumElems);
for (unsigned I = 0; I < ArrNumElems; ++I) {
Value *EE = Builder.CreateExtractElement(Vec, I, Name + ".extract");
More information about the llvm-commits
mailing list