forked from OSchip/llvm-project
Fix gcc warning by explicitly initializing the base class copy ctor (NFC)
Full diagnostic was: warning: base class ‘class mlir::OptReductionBase<mlir::OptReductionPass>’ should be explicitly initialized in the copy constructor [-Wextra]
This commit is contained in:
parent
eb35ebb3a2
commit
719548d63d
|
@ -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<OptReductionPass>(srcPass), test(srcPass.test),
|
||||
optPass(srcPass.optPass.get()) {}
|
||||
|
||||
/// Runs the pass instance in the pass pipeline.
|
||||
void OptReductionPass::runOnOperation() {
|
||||
|
|
Loading…
Reference in New Issue