[Mlir-commits] [mlir] fd6ba1d - Apply clang-tidy fixes for readability-container-size-empty in SCF.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Jan 14 10:09:01 PST 2022


Author: Mehdi Amini
Date: 2022-01-14T18:08:43Z
New Revision: fd6ba1d2c036d508f21f5057a33d4a1e5aa4e08f

URL: https://github.com/llvm/llvm-project/commit/fd6ba1d2c036d508f21f5057a33d4a1e5aa4e08f
DIFF: https://github.com/llvm/llvm-project/commit/fd6ba1d2c036d508f21f5057a33d4a1e5aa4e08f.diff

LOG: Apply clang-tidy fixes for readability-container-size-empty in SCF.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/SCF/SCF.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SCF/SCF.cpp b/mlir/lib/Dialect/SCF/SCF.cpp
index 5fe73a8d57c51..8a7509e469bfc 100644
--- a/mlir/lib/Dialect/SCF/SCF.cpp
+++ b/mlir/lib/Dialect/SCF/SCF.cpp
@@ -2546,7 +2546,7 @@ struct WhileUnusedArg : public OpRewritePattern<WhileOp> {
       }
     }
 
-    if (argsToErase.size() == 0)
+    if (argsToErase.empty())
       return failure();
 
     rewriter.startRootUpdate(op);


        


More information about the Mlir-commits mailing list