Skip to content

Commit 9250cad

Browse files
authored
Clarify comment about not processing structs or GEPs for structs
1 parent 733ae8e commit 9250cad

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
@@ -266,7 +266,7 @@ bool DXILFlattenArraysVisitor::visitGetElementPtrInst(GetElementPtrInst &GEP) {
266266

267267
// If the parent GEP was not processed, then we do not want to process its
268268
// descendants. This can happen if the GEP chain is for an unsupported type
269-
// such as structs -- we do not flatten structs.
269+
// such as a struct -- we do not flatten structs nor GEP chains for structs
270270
if (!GEPChainInfoMap.contains(PtrOpGEP))
271271
return false;
272272

0 commit comments

Comments
 (0)