[Mlir-commits] [mlir] c67a4ae - Apply clang-tidy fixes for readability-container-size-empty in SerializeToLLVMBitcode.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Feb 25 17:05:57 PST 2024
Author: Mehdi Amini
Date: 2024-02-25T17:05:30-08:00
New Revision: c67a4ae47c86f1f390db7ba0ea9c021abff130f8
URL: https://github.com/llvm/llvm-project/commit/c67a4ae47c86f1f390db7ba0ea9c021abff130f8
DIFF: https://github.com/llvm/llvm-project/commit/c67a4ae47c86f1f390db7ba0ea9c021abff130f8.diff
LOG: Apply clang-tidy fixes for readability-container-size-empty in SerializeToLLVMBitcode.cpp (NFC)
Added:
Modified:
mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp b/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp
index 94bc9b6da6cf6c..96828828fe3f46 100644
--- a/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp
+++ b/mlir/unittests/Target/LLVM/SerializeToLLVMBitcode.cpp
@@ -60,7 +60,7 @@ TEST_F(MLIRTargetLLVM, SKIP_WITHOUT_NATIVE(SerializeToLLVMBitcode)) {
"");
std::optional<SmallVector<char, 0>> serializedModule = serializer.run();
ASSERT_TRUE(!!serializedModule);
- ASSERT_TRUE(serializedModule->size() > 0);
+ ASSERT_TRUE(!serializedModule->empty());
// Read the serialized module.
llvm::MemoryBufferRef buffer(
More information about the Mlir-commits
mailing list