Skip to content

Commit 6b72c37

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in TestVisitors.cpp (NFC)
1 parent 1cf4cc0 commit 6b72c37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/test/lib/IR/TestVisitors.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ static void testSkipErasureCallbacks(Operation *op) {
136136
llvm::outs() << "\n";
137137
block->erase();
138138
return WalkResult::skip();
139-
} else {
140-
llvm::outs() << "Cannot erase ";
141-
printBlock(block);
142-
llvm::outs() << ", still has uses\n";
143-
return WalkResult::advance();
144139
}
140+
llvm::outs() << "Cannot erase ";
141+
printBlock(block);
142+
llvm::outs() << ", still has uses\n";
143+
return WalkResult::advance();
144+
145145
};
146146

147147
llvm::outs() << "Op pre-order erasures (skip)"

0 commit comments

Comments
 (0)