From 7fa57cd430f5811beed8cfc862768238fc5d06bb Mon Sep 17 00:00:00 2001 From: Karim Nosseir <44206880+karimnosseir@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:30:55 -0800 Subject: [MLIR] Add move constructor to BytecodeWriterConfig (#126130) The config is currently not movable and because there are constructors the default move won't be generated, which prevents it from being moved. Also, it is not copyable because of the unique_ptr. This PR adds move constructor to allow moving it. --- mlir/lib/Bytecode/Writer/BytecodeWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mlir/lib/Bytecode') diff --git a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp index 0e96aa97abeb..2b4697434717 100644 --- a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp +++ b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp @@ -66,6 +66,9 @@ BytecodeWriterConfig::BytecodeWriterConfig(FallbackAsmResourceMap &map, : BytecodeWriterConfig(producer) { attachFallbackResourcePrinter(map); } +BytecodeWriterConfig::BytecodeWriterConfig(BytecodeWriterConfig &&config) + : impl(std::move(config.impl)) {} + BytecodeWriterConfig::~BytecodeWriterConfig() = default; ArrayRef>> -- cgit v1.2.3