Skip to content

Commit 868efdc

Browse files
authored
[Clang][Bytecode][NFC] Move Result into APSInt constructor (#153664)
Static analysis flagged this line because we are copying Result instead of moving it.
1 parent ae7e1b8 commit 868efdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,7 @@ static bool interp__builtin_elementwise_sat(InterpState &S, CodePtr OpPC,
23382338
llvm_unreachable("Wrong builtin ID");
23392339
}
23402340

2341-
pushInteger(S, APSInt(Result, !LHS.isSigned()), Call->getType());
2341+
pushInteger(S, APSInt(std::move(Result), !LHS.isSigned()), Call->getType());
23422342
return true;
23432343
}
23442344

0 commit comments

Comments
 (0)