forked from OSchip/llvm-project
Apply clang-tidy fixes for modernize-use-equals-default in TosaCanonicalizations.cpp (NFC)
This commit is contained in:
parent
16e4e4ab87
commit
549c18eda0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue