[Mlir-commits] [mlir] bca2d85 - [MLIR][Interfaces] Silence -Wparentheses warning (NFC)
Lorenzo Chelini
llvmlistbot at llvm.org
Tue Jan 25 00:03:28 PST 2022
Author: Lorenzo Chelini
Date: 2022-01-25T09:02:49+01:00
New Revision: bca2d85153dc4a7bff5f671a742e12512a2bc31f
URL: https://github.com/llvm/llvm-project/commit/bca2d85153dc4a7bff5f671a742e12512a2bc31f
DIFF: https://github.com/llvm/llvm-project/commit/bca2d85153dc4a7bff5f671a742e12512a2bc31f.diff
LOG: [MLIR][Interfaces] Silence -Wparentheses warning (NFC)
warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Added:
Modified:
mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
index 806821a988bf3..1e8f7b54c474a 100644
--- a/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
+++ b/mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
@@ -91,7 +91,7 @@ class InvocationBounds {
/// Create invocation bounds. The lower bound must be at least 0 and only the
/// upper bound can be unknown.
InvocationBounds(unsigned lb, Optional<unsigned> ub) : lower(lb), upper(ub) {
- assert(!ub || ub >= lb && "upper bound cannot be less than lower bound");
+ assert((!ub || ub >= lb) && "upper bound cannot be less than lower bound");
}
/// Return the lower bound.
More information about the Mlir-commits
mailing list