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
This commit is contained in:
Mauricio Sifontes 2020-08-14 19:12:07 +00:00
parent 1aed1e72e8
commit c26ed5c965
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ public:
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.