diff --git a/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp b/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp --- a/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp +++ b/mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp @@ -274,8 +274,8 @@ } GpuKernelOutliningPass(const GpuKernelOutliningPass &other) - : dataLayoutSpec(other.dataLayoutSpec) { - dataLayoutStr = other.dataLayoutStr; + : GpuKernelOutliningBase(other), dataLayoutSpec(other.dataLayoutSpec) { + dataLayoutStr = other.dataLayoutStr.getValue(); } LogicalResult initialize(MLIRContext *context) override {