Skip to content

Commit b1c6dab

Browse files
committed
address pr comment by making the comment more clear that index 0 is the ptr operand to the array
1 parent d3ff099 commit b1c6dab

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
@@ -229,7 +229,7 @@ void DXILFlattenArraysVisitor::collectIndicesAndDimsFromGEP(
229229
GetElementPtrInst &GEP, SmallVectorImpl<Value *> &Indices,
230230
SmallVectorImpl<uint64_t> &Dims, bool &AllIndicesAreConstInt) {
231231

232-
// Skip the first index (which is ptr index ie always start at 0 for arrays)
232+
// Skip the first index which is array ptr
233233
// and collect all subsequent indices
234234
Type *CurrentType = GEP.getSourceElementType();
235235
for (unsigned I = 1; I < GEP.getNumIndices(); ++I) {

0 commit comments

Comments
 (0)