[Mlir-commits] [mlir] 7a80912 - Apply clang-tidy fixes for modernize-use-default-member-init in ControlFlowSinkUtils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Apr 15 01:01:29 PDT 2022


Author: Mehdi Amini
Date: 2022-04-15T08:01:04Z
New Revision: 7a80912dd8430489f5090a84abcb212d9c40842f

URL: https://github.com/llvm/llvm-project/commit/7a80912dd8430489f5090a84abcb212d9c40842f
DIFF: https://github.com/llvm/llvm-project/commit/7a80912dd8430489f5090a84abcb212d9c40842f.diff

LOG: Apply clang-tidy fixes for modernize-use-default-member-init in ControlFlowSinkUtils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp b/mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp
index 01d6f6464a40f..3e34050a500ba 100644
--- a/mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp
+++ b/mlir/lib/Transforms/Utils/ControlFlowSinkUtils.cpp
@@ -37,7 +37,7 @@ class Sinker {
          function_ref<void(Operation *, Region *)> moveIntoRegion,
          DominanceInfo &domInfo)
       : shouldMoveIntoRegion(shouldMoveIntoRegion),
-        moveIntoRegion(moveIntoRegion), domInfo(domInfo), numSunk(0) {}
+        moveIntoRegion(moveIntoRegion), domInfo(domInfo) {}
 
   /// Given a list of regions, find operations to sink and sink them. Return the
   /// number of operations sunk.


        


More information about the Mlir-commits mailing list