Apply clang-tidy fixes for modernize-use-equals-default in TosaCanonicalizations.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-10-06 19:31:17 +00:00
parent 16e4e4ab87
commit 549c18eda0
1 changed files with 3 additions and 3 deletions

View File

@ -662,7 +662,7 @@ OpFoldResult SubOp::fold(ArrayRef<Attribute> operands) {
namespace {
template <typename Cmp>
struct ComparisonFold {
ComparisonFold() {}
ComparisonFold() = default;
APInt operator()(const APInt &l, const APInt &r) {
return APInt(1, Cmp()(l, r));
}
@ -673,12 +673,12 @@ struct ComparisonFold {
};
struct APIntFoldGreater {
APIntFoldGreater() {}
APIntFoldGreater() = default;
APInt operator()(APInt l, APInt r) { return APInt(1, l.sgt(r)); }
};
struct APIntFoldGreaterEqual {
APIntFoldGreaterEqual() {}
APIntFoldGreaterEqual() = default;
APInt operator()(APInt l, APInt r) { return APInt(1, l.sge(r)); }
};
} // namespace