Skip to content

Commit

Permalink
Fix warning caused by ReductionTreePass class
Browse files Browse the repository at this point in the history
Explicitly declare ReductionTreeBase base class in ReductionTreePass copy constructor.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D85983
  • Loading branch information
msifontes committed Aug 14, 2020
1 parent 1aed1e7 commit c26ed5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlir/include/mlir/Reducer/ReductionTreePass.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c26ed5c

Please sign in to comment.