Skip to content

Commit b9dac89

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in TestBackwardDataFlowAnalysis.cpp (NFC)
1 parent 4d3ba7a commit b9dac89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,13 @@ void WrittenToAnalysis::visitOperation(Operation *op,
6868
new_writes.insert(op->getAttrOfType<StringAttr>("tag_name"));
6969
propagateIfChanged(operands[0], operands[0]->addWrites(new_writes));
7070
return;
71-
} else {
72-
// By default, every result of an op depends on every operand.
71+
} // By default, every result of an op depends on every operand.
7372
for (const WrittenTo *r : results) {
7473
for (WrittenTo *operand : operands) {
7574
meet(operand, *r);
7675
}
7776
addDependency(const_cast<WrittenTo *>(r), op);
7877
}
79-
}
8078
}
8179

8280
void WrittenToAnalysis::visitBranchOperand(OpOperand &operand) {

0 commit comments

Comments
 (0)