From: Adrian Kuegel Date: Mon, 7 Mar 2022 08:40:49 +0000 (+0100) Subject: [mlir] Use empty() instead of checking size() == 0 (NFC) X-Git-Tag: upstream/15.0.7~14471 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef193a7a7c865254dfa726a07711423d2b5c69f7;p=platform%2Fupstream%2Fllvm.git [mlir] Use empty() instead of checking size() == 0 (NFC) --- diff --git a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp index 28f2052..a50cac9 100644 --- a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp +++ b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp @@ -400,7 +400,7 @@ struct AllocaScopeHoister : public OpRewritePattern { return WalkResult::advance(); }); - if (!toHoist.size()) + if (toHoist.empty()) return failure(); rewriter.setInsertionPoint(lastParentWithoutScope); for (auto op : toHoist) {