Skip to content

Commit a4dab50

Browse files
authored
[DirectX] Replace getNextNonDebugInstruction with getNextNode (#148890)
Fixes the DirectX backend build failure due to #144383
1 parent 31e6fe7 commit a4dab50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILDataScalarization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ DataScalarizerVisitor::createArrayFromVector(IRBuilder<> &Builder, Value *Vec,
202202
// original vector's defining instruction if available, else immediately after
203203
// the alloca
204204
if (auto *Instr = dyn_cast<Instruction>(Vec))
205-
Builder.SetInsertPoint(Instr->getNextNonDebugInstruction());
205+
Builder.SetInsertPoint(Instr->getNextNode());
206206
SmallVector<Value *, 4> GEPs(ArrNumElems);
207207
for (unsigned I = 0; I < ArrNumElems; ++I) {
208208
Value *EE = Builder.CreateExtractElement(Vec, I, Name + ".extract");

0 commit comments

Comments
 (0)