Skip to content

Commit

Permalink
[Serialization] Fix -Wpessimizing-move after 9cdb825
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Dec 15, 2023
1 parent e55bda0 commit ce1faec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Serialization/ASTWriterDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ getFunctionDeclAbbrev(serialization::DeclCode Code) {
//
// Add an AbbrevOp for 'size then elements' and use it here.
Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array));
return std::move(Abv);
return Abv;
}

template <FunctionDecl::TemplatedKind Kind>
Expand Down

0 comments on commit ce1faec

Please sign in to comment.