diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index b678f229d50bb..5fc5034569597 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -1321,7 +1321,7 @@ static bool interp__builtin_ia32_pdep(InterpState &S, CodePtr OpPC, if (Mask[I]) Result.setBitVal(I, Val[P++]); } - pushInteger(S, Result, Call->getType()); + pushInteger(S, std::move(Result), Call->getType()); return true; } @@ -1344,7 +1344,7 @@ static bool interp__builtin_ia32_pext(InterpState &S, CodePtr OpPC, if (Mask[I]) Result.setBitVal(P++, Val[I]); } - pushInteger(S, Result, Call->getType()); + pushInteger(S, std::move(Result), Call->getType()); return true; }