[Mlir-commits] [mlir] 84124ff - Apply clang-tidy fixes for readability-simplify-boolean-expr in ViewLikeInterface.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Jun 29 05:16:01 PDT 2022


Author: Mehdi Amini
Date: 2022-06-29T12:15:39Z
New Revision: 84124ff891b95d4246ba1662b7e18dc08a4cb009

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

LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in ViewLikeInterface.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Interfaces/ViewLikeInterface.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Interfaces/ViewLikeInterface.cpp b/mlir/lib/Interfaces/ViewLikeInterface.cpp
index 4ecf5390edc75..31b9d1a0ac436 100644
--- a/mlir/lib/Interfaces/ViewLikeInterface.cpp
+++ b/mlir/lib/Interfaces/ViewLikeInterface.cpp
@@ -41,7 +41,7 @@ mlir::detail::verifyOffsetSizeAndStrideOp(OffsetSizeAndStrideOpInterface op) {
   //   1. Either single entry (when maxRanks == 1).
   //   2. Or as an array whose rank must match that of the mixed sizes.
   // So that the result type is well-formed.
-  if (!(op.getMixedOffsets().size() == 1 && maxRanks[0] == 1) &&
+  if (!(op.getMixedOffsets().size() == 1 && maxRanks[0] == 1) && // NOLINT
       op.getMixedOffsets().size() != op.getMixedSizes().size())
     return op->emitError(
                "expected mixed offsets rank to match mixed sizes rank (")


        


More information about the Mlir-commits mailing list