[Mlir-commits] [mlir] a4ef444 - Apply clang-tidy fixes for readability-container-size-empty in ExecutionEngine.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Nov 12 15:47:58 PST 2022
Author: Mehdi Amini
Date: 2022-11-12T23:47:38Z
New Revision: a4ef4445a065da10f8255e4bae6d2a04a6515863
URL: https://github.com/llvm/llvm-project/commit/a4ef4445a065da10f8255e4bae6d2a04a6515863
DIFF: https://github.com/llvm/llvm-project/commit/a4ef4445a065da10f8255e4bae6d2a04a6515863.diff
LOG: Apply clang-tidy fixes for readability-container-size-empty in ExecutionEngine.cpp (NFC)
Added:
Modified:
mlir/lib/ExecutionEngine/ExecutionEngine.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
index 751e639a675a2..dc53b3546578e 100644
--- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -96,7 +96,7 @@ void SimpleObjectCache::dumpToObjectFile(StringRef outputFilename) {
file->keep();
}
-bool SimpleObjectCache::isEmpty() { return cachedObjects.size() == 0; }
+bool SimpleObjectCache::isEmpty() { return cachedObjects.empty(); }
void ExecutionEngine::dumpToObjectFile(StringRef filename) {
if (cache == nullptr) {
More information about the Mlir-commits
mailing list