diff --git a/Userland/Libraries/LibWasm/Parser/Parser.cpp b/Userland/Libraries/LibWasm/Parser/Parser.cpp index 5fccd867544..7f4223975f6 100644 --- a/Userland/Libraries/LibWasm/Parser/Parser.cpp +++ b/Userland/Libraries/LibWasm/Parser/Parser.cpp @@ -1246,7 +1246,7 @@ ParseResult CodeSection::Func::parse(Stream& stream, size_t s ScopeLogger logger("Func"sv); auto locals = TRY(parse_vector(stream)); auto body = TRY(Expression::parse(stream, size_hint)); - return Func { locals, body }; + return Func { move(locals), move(body) }; } ParseResult CodeSection::Code::parse(Stream& stream) @@ -1261,14 +1261,14 @@ ParseResult CodeSection::Code::parse(Stream& stream) // `size / 2` instructions, so we pass that as our size hint. auto func = TRY(Func::parse(stream, size / 2)); - return Code { static_cast(size), func }; + return Code { static_cast(size), move(func) }; } ParseResult CodeSection::parse(Stream& stream) { ScopeLogger logger("CodeSection"sv); auto result = TRY(parse_vector(stream)); - return CodeSection { result }; + return CodeSection { move(result) }; } ParseResult DataSection::Data::parse(Stream& stream)