[mlir][NFC] Use .empty() instead of .size()

This commit is contained in:
Adrian Kuegel 2021-12-22 12:29:53 +01:00
parent 0af628152a
commit 6e9be9f7c1
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ static bool hasNoInterveningEffect(Operation *start, T memOp) {
SmallPtrSet<Block *, 4> done;
// Traverse the CFG until hitting `to`.
while (todoBlocks.size()) {
while (!todoBlocks.empty()) {
Block *blk = todoBlocks.pop_back_val();
if (done.count(blk))
continue;