Skip to content

Commit 9ff05d2

Browse files
committed
Use .indices() instead of .idx_begin() and .idx_end()
1 parent 3280609 commit 9ff05d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILFlattenArrays.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ bool DXILFlattenArraysVisitor::visitGetElementPtrInst(GetElementPtrInst &GEP) {
227227
OldGEPI->insertBefore(GEP.getIterator());
228228

229229
IRBuilder<> Builder(&GEP);
230-
SmallVector<Value *> Indices(GEP.idx_begin(), GEP.idx_end());
230+
SmallVector<Value *> Indices(GEP.indices());
231231
Value *NewGEP =
232232
Builder.CreateGEP(GEP.getSourceElementType(), OldGEPI, Indices,
233233
GEP.getName(), GEP.getNoWrapFlags());

0 commit comments

Comments
 (0)