[mlir] Use empty() instead of checking size() == 0 (NFC)

This commit is contained in:
Adrian Kuegel 2022-03-07 09:40:49 +01:00
parent 8133778d3c
commit ef193a7a7c
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ struct AllocaScopeHoister : public OpRewritePattern<AllocaScopeOp> {
return WalkResult::advance();
});
if (!toHoist.size())
if (toHoist.empty())
return failure();
rewriter.setInsertionPoint(lastParentWithoutScope);
for (auto op : toHoist) {