Apply clang-tidy fixes for readability-simplify-boolean-expr in ViewLikeInterface...
authorMehdi Amini <joker.eph@gmail.com>
Sun, 12 Jun 2022 18:12:26 +0000 (18:12 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 29 Jun 2022 12:15:39 +0000 (12:15 +0000)
mlir/lib/Interfaces/ViewLikeInterface.cpp

index 4ecf539..31b9d1a 100644 (file)
@@ -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 (")