[mlir][NFC] Fix `GpuKernelOutliningPass` copy constructor warnings

1. Call copy constructor of the base class
2. Assign value of the option directly

Reviewed By: dcaballe, rriddle

Differential Revision: https://reviews.llvm.org/D125101
This commit is contained in:
Daniil Dudkin 2022-05-12 11:39:53 +03:00
parent bf5fc0d603
commit 70c463efc8
1 changed files with 2 additions and 2 deletions

View File

@ -274,8 +274,8 @@ public:
} }
GpuKernelOutliningPass(const GpuKernelOutliningPass &other) GpuKernelOutliningPass(const GpuKernelOutliningPass &other)
: dataLayoutSpec(other.dataLayoutSpec) { : GpuKernelOutliningBase(other), dataLayoutSpec(other.dataLayoutSpec) {
dataLayoutStr = other.dataLayoutStr; dataLayoutStr = other.dataLayoutStr.getValue();
} }
LogicalResult initialize(MLIRContext *context) override { LogicalResult initialize(MLIRContext *context) override {