Skip to content

Commit 468b3a3

Browse files
committed
review: clarify comments
1 parent e702f01 commit 468b3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static void translateLoopMetadata(Module &M, Instruction *I, MDNode *BaseMD) {
376376
return Node && Node->getNumOperands() != 0 && Node == Node->getOperand(0);
377377
};
378378

379-
// Strip empty metadata or a non-distinct node
379+
// Set metadata to null to remove empty/ill-formed metadata from instruction
380380
if (BaseMD->getNumOperands() == 0 || !IsDistinctNode(BaseMD))
381381
return I->setMetadata("llvm.loop", nullptr);
382382

0 commit comments

Comments
 (0)