projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be79972
)
Apply clang-tidy fixes for readability-simplify-boolean-expr in ViewLikeInterface...
author
Mehdi Amini
<joker.eph@gmail.com>
Sun, 12 Jun 2022 18:12:26 +0000
(18:12 +0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Wed, 29 Jun 2022 12:15:39 +0000
(12:15 +0000)
mlir/lib/Interfaces/ViewLikeInterface.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Interfaces/ViewLikeInterface.cpp
b/mlir/lib/Interfaces/ViewLikeInterface.cpp
index
4ecf539
..
31b9d1a
100644
(file)
--- 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 (")