[Mlir-commits] [mlir] 6a38cbf - Apply clang-tidy fixes for modernize-use-equals-default in IRCore.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Jan 9 17:05:36 PST 2022


Author: Mehdi Amini
Date: 2022-01-10T01:05:13Z
New Revision: 6a38cbfb53d4480d66b8ac885ad098cb92c8e492

URL: https://github.com/llvm/llvm-project/commit/6a38cbfb53d4480d66b8ac885ad098cb92c8e492
DIFF: https://github.com/llvm/llvm-project/commit/6a38cbfb53d4480d66b8ac885ad098cb92c8e492.diff

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

Added: 
    

Modified: 
    mlir/lib/Bindings/Python/IRCore.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bindings/Python/IRCore.cpp b/mlir/lib/Bindings/Python/IRCore.cpp
index 1a9604882fe09..729431b98ec32 100644
--- a/mlir/lib/Bindings/Python/IRCore.cpp
+++ b/mlir/lib/Bindings/Python/IRCore.cpp
@@ -725,7 +725,7 @@ PyDiagnosticHandler::PyDiagnosticHandler(MlirContext context,
                                          py::object callback)
     : context(context), callback(std::move(callback)) {}
 
-PyDiagnosticHandler::~PyDiagnosticHandler() {}
+PyDiagnosticHandler::~PyDiagnosticHandler() = default;
 
 void PyDiagnosticHandler::detach() {
   if (!registeredID)


        


More information about the Mlir-commits mailing list