diff --git a/mlir/tools/mlir-reduce/OptReductionPass.cpp b/mlir/tools/mlir-reduce/OptReductionPass.cpp index fbc3053aa826..2ad55e948618 100644 --- a/mlir/tools/mlir-reduce/OptReductionPass.cpp +++ b/mlir/tools/mlir-reduce/OptReductionPass.cpp @@ -23,7 +23,8 @@ OptReductionPass::OptReductionPass(const Tester &test, MLIRContext *context, : context(context), test(test), optPass(std::move(optPass)) {} OptReductionPass::OptReductionPass(const OptReductionPass &srcPass) - : test(srcPass.test), optPass(srcPass.optPass.get()) {} + : OptReductionBase(srcPass), test(srcPass.test), + optPass(srcPass.optPass.get()) {} /// Runs the pass instance in the pass pipeline. void OptReductionPass::runOnOperation() {