[Mlir-commits] [llvm] [mlir] eliminating g++ warnings (PR #105520)
Frank Schlimbach
llvmlistbot at llvm.org
Thu Aug 22 00:47:56 PDT 2024
================
@@ -893,7 +893,7 @@ FlatLinearValueConstraints::FlatLinearValueConstraints(IntegerSet set,
set.getNumDims(), set.getNumSymbols(),
/*numLocals=*/0) {
assert(operands.empty() ||
- set.getNumInputs() == operands.size() && "operand count mismatch");
+ (set.getNumInputs() == operands.size() && "operand count mismatch"));
----------------
fschlimb wrote:
Yes, the point here is that the braces should not change the semantics. gcc "suggests" braces to clarify. I tried to add braces without changing semantics. What you are proposing looks more correct, but is not the same as without.
https://github.com/llvm/llvm-project/pull/105520
More information about the Mlir-commits
mailing list