Skip to content

Commit d2aab98

Browse files
committed
fix typo indicies need to be on GOp not GEPI
1 parent 2c0e73c commit d2aab98

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
@@ -337,7 +337,7 @@ bool DataScalarizerVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) {
337337
NewGEPType = GOp->getSourceElementType();
338338

339339
IRBuilder<> Builder(&GEPI);
340-
SmallVector<Value *, MaxVecSize> Indices(GEPI.indices());
340+
SmallVector<Value *, MaxVecSize> Indices(GOp->indices());
341341
Value *NewGEP = Builder.CreateGEP(NewGEPType, PtrOperand, Indices,
342342
GOp->getName(), GOp->getNoWrapFlags());
343343

0 commit comments

Comments
 (0)