Skip to content

Commit d5a50b0

Browse files
Fix warnings
This patch fixes: mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp:1334:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] lld/wasm/Writer.cpp:250:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
1 parent d374d47 commit d5a50b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lld/wasm/Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ computeHash(llvm::MutableArrayRef<uint8_t> hashBuf,
247247

248248
static void makeUUID(unsigned version, llvm::ArrayRef<uint8_t> fileHash,
249249
llvm::MutableArrayRef<uint8_t> output) {
250-
assert(version == 4 || version == 5 && "Unknown UUID version");
250+
assert((version == 4 || version == 5) && "Unknown UUID version");
251251
assert(output.size() == 16 && "Wrong size for UUID output");
252252
if (version == 5) {
253253
// Build a valid v5 UUID from a hardcoded (randomly-generated) namespace

mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,9 +1330,9 @@ packMatmulGreedily(RewriterBase &rewriter, LinalgOp linalgOp,
13301330
ArrayRef<int64_t> mnkPaddedSizesNextMultipleOf,
13311331
ArrayRef<int64_t> mnkOrder) {
13321332
assert(mnkPackedSizes.size() == 3 && "unexpected num of packing sizes");
1333-
assert(mnkPaddedSizesNextMultipleOf.empty() ||
1334-
mnkPaddedSizesNextMultipleOf.size() == 3 &&
1335-
"num of packing sizes next multiple should be empty or of size 3");
1333+
assert((mnkPaddedSizesNextMultipleOf.empty() ||
1334+
mnkPaddedSizesNextMultipleOf.size() == 3) &&
1335+
"num of packing sizes next multiple should be empty or of size 3");
13361336
assert(mnkOrder.size() == 3 && "unexpected mnkOrder size");
13371337
assert(isPermutationVector(mnkOrder) && "expected a permutation");
13381338

0 commit comments

Comments
 (0)