forked from OSchip/llvm-project
[mlir] Use empty() instead of checking size() == 0 (NFC)
This commit is contained in:
parent
8133778d3c
commit
ef193a7a7c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue