[Mlir-commits] [mlir] c26ed5c - Fix warning caused by ReductionTreePass class

Mauricio Sifontes llvmlistbot at llvm.org
Fri Aug 14 12:12:50 PDT 2020


Author: Mauricio Sifontes
Date: 2020-08-14T19:12:09Z
New Revision: c26ed5c9657a8cc4f97fde1b98e3762514bc3666

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

LOG: Fix warning caused by ReductionTreePass class

Explicitly declare ReductionTreeBase base class in ReductionTreePass copy constructor.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D85983

Added: 
    

Modified: 
    mlir/include/mlir/Reducer/ReductionTreePass.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Reducer/ReductionTreePass.h b/mlir/include/mlir/Reducer/ReductionTreePass.h
index 723ed6a73d47..01104aa0429b 100644
--- a/mlir/include/mlir/Reducer/ReductionTreePass.h
+++ b/mlir/include/mlir/Reducer/ReductionTreePass.h
@@ -47,7 +47,8 @@ class ReductionTreePass
   ReductionTreePass(const Tester *test) : test(test) {}
 
   ReductionTreePass(const ReductionTreePass &pass)
-      : root(new ReductionNode(pass.root->getModule().clone(), nullptr)),
+      : ReductionTreeBase<ReductionTreePass<Reducer, mode>>(pass),
+        root(new ReductionNode(pass.root->getModule().clone(), nullptr)),
         test(pass.test) {}
 
   /// Runs the pass instance in the pass pipeline.


        


More information about the Mlir-commits mailing list