Skip to content

Commit 067c535

Browse files
committed
fixed braces
1 parent 3129aae commit 067c535

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mlir/include/mlir/Pass/Pass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Pass {
9494
Option(Pass &parent, StringRef arg, Args &&...args)
9595
: detail::PassOptions::Option<DataType, OptionParser>(
9696
parent.passOptions, arg, std::forward<Args>(args)...) {}
97-
Option &operator=(const Option &other) = default; // gcc11
97+
Option &operator=(const Option &other) = default; // gcc11 -Wdeprecated-copy
9898
using detail::PassOptions::Option<DataType, OptionParser>::operator=;
9999
};
100100
/// This class represents a specific pass option that contains a list of

mlir/lib/Analysis/FlatLinearValueConstraints.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,8 @@ FlatLinearValueConstraints::FlatLinearValueConstraints(IntegerSet set,
892892
set.getNumDims() + set.getNumSymbols() + 1,
893893
set.getNumDims(), set.getNumSymbols(),
894894
/*numLocals=*/0) {
895-
assert(operands.empty() ||
896-
(set.getNumInputs() == operands.size() && "operand count mismatch"));
895+
assert((operands.empty() || set.getNumInputs() == operands.size()) &&
896+
"operand count mismatch");
897897
// Set the values for the non-local variables.
898898
for (unsigned i = 0, e = operands.size(); i < e; ++i)
899899
setValue(i, operands[i]);

0 commit comments

Comments
 (0)