[Mlir-commits] [mlir] b37d158 - Apply clang-tidy fixes for bugprone-copy-constructor-init in TestPassManager.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri May 6 13:20:41 PDT 2022


Author: Mehdi Amini
Date: 2022-05-06T20:19:19Z
New Revision: b37d158f71c2b579cd8c8bf355437455563d008d

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

LOG: Apply clang-tidy fixes for bugprone-copy-constructor-init in TestPassManager.cpp (NFC)

Added: 
    

Modified: 
    mlir/test/lib/Pass/TestPassManager.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Pass/TestPassManager.cpp b/mlir/test/lib/Pass/TestPassManager.cpp
index 928d5c11aabe4..c19221d923e3f 100644
--- a/mlir/test/lib/Pass/TestPassManager.cpp
+++ b/mlir/test/lib/Pass/TestPassManager.cpp
@@ -115,7 +115,7 @@ struct TestInvalidIRPass
   MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestInvalidIRPass)
 
   TestInvalidIRPass() = default;
-  TestInvalidIRPass(const TestInvalidIRPass &other) {}
+  TestInvalidIRPass(const TestInvalidIRPass &other) : PassWrapper(other) {}
 
   StringRef getArgument() const final { return "test-pass-create-invalid-ir"; }
   StringRef getDescription() const final {


        


More information about the Mlir-commits mailing list