[llvm] a4dab50 - [DirectX] Replace `getNextNonDebugInstruction` with `getNextNode` (#148890)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 15 09:58:59 PDT 2025


Author: Deric C.
Date: 2025-07-15T09:58:56-07:00
New Revision: a4dab509d360a06d189352a4e4d23e5a6bbb34a3

URL: https://github.com/llvm/llvm-project/commit/a4dab509d360a06d189352a4e4d23e5a6bbb34a3
DIFF: https://github.com/llvm/llvm-project/commit/a4dab509d360a06d189352a4e4d23e5a6bbb34a3.diff

LOG: [DirectX] Replace `getNextNonDebugInstruction` with `getNextNode` (#148890)

Fixes the DirectX backend build failure due to #144383

Added: 
    

Modified: 
    llvm/lib/Target/DirectX/DXILDataScalarization.cpp

Removed: 
    


################################################################################
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