Skip to content

[DirectX] Replace getNextNonDebugInstruction with getNextNode#148890

Merged
Icohedron merged 1 commit into
llvm:mainfrom
Icohedron:replace-nextnondebuginstruction
Jul 15, 2025
Merged

[DirectX] Replace getNextNonDebugInstruction with getNextNode#148890
Icohedron merged 1 commit into
llvm:mainfrom
Icohedron:replace-nextnondebuginstruction

Conversation

@Icohedron

Copy link
Copy Markdown
Contributor

Fixes the DirectX backend build failure due to #144383

@Icohedron Icohedron merged commit a4dab50 into llvm:main Jul 15, 2025
7 of 10 checks passed
@llvmbot

llvmbot commented Jul 15, 2025

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-backend-directx

Author: Deric C. (Icohedron)

Changes

Fixes the DirectX backend build failure due to #144383


Full diff: https://github.com/llvm/llvm-project/pull/148890.diff

1 Files Affected:

  • (modified) llvm/lib/Target/DirectX/DXILDataScalarization.cpp (+1-1)
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");

AnthonyLatsis added a commit to swiftlang/llvm-project that referenced this pull request Jun 24, 2026
🍒 [DirectX] Replace `getNextNonDebugInstruction` with `getNextNode` (llvm#148890)
joeybrinker pushed a commit to joeybrinker/llvm-project that referenced this pull request Jun 25, 2026
…vm#148890)

Fixes the DirectX backend build failure due to llvm#144383

(cherry picked from commit a4dab50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants