Skip to content

Commit 5b14c7a

Browse files
[mlir] Fix a warning
This patch fixes: llvm-project/mlir/include/mlir/IR/OpDefinition.h:1544:19: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
1 parent 8148c28 commit 5b14c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/IR/OpDefinition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ foldTrait(Operation *, ArrayRef<Attribute>, SmallVectorImpl<OpFoldResult> &) {
15411541
template <typename... Ts>
15421542
static LogicalResult foldTraits(Operation *op, ArrayRef<Attribute> operands,
15431543
SmallVectorImpl<OpFoldResult> &results) {
1544-
return success((succeeded(foldTrait<Ts>(op, operands, results)) | ...));
1544+
return success((succeeded(foldTrait<Ts>(op, operands, results)) || ...));
15451545
}
15461546

15471547
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)