forked from OSchip/llvm-project
[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:
parent
bf5fc0d603
commit
70c463efc8
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue