[Mlir-commits] [mlir] 549c18e - Apply clang-tidy fixes for modernize-use-equals-default in TosaCanonicalizations.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Oct 13 08:56:00 PDT 2022


Author: Mehdi Amini
Date: 2022-10-13T15:55:32Z
New Revision: 549c18eda0ae5b897d74590fd3860dc32b881c39

URL: https://github.com/llvm/llvm-project/commit/549c18eda0ae5b897d74590fd3860dc32b881c39
DIFF: https://github.com/llvm/llvm-project/commit/549c18eda0ae5b897d74590fd3860dc32b881c39.diff

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp b/mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
index dd1a78108e67d..b97672334b713 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
@@ -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


        


More information about the Mlir-commits mailing list