[llvm] [DirectX] Replace `getNextNonDebugInstruction` with `getNextNode` (PR #148890)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 10:09:18 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-directx
Author: Deric C. (Icohedron)
<details>
<summary>Changes</summary>
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
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/148890
More information about the llvm-commits
mailing list