Author: Shafik Yaghmour Date: 2025-08-15T08:52:49-07:00 New Revision: 868efdcf381d28d6b5e273e6fb8704637436856e
URL: https://github.com/llvm/llvm-project/commit/868efdcf381d28d6b5e273e6fb8704637436856e DIFF: https://github.com/llvm/llvm-project/commit/868efdcf381d28d6b5e273e6fb8704637436856e.diff LOG: [Clang][Bytecode][NFC] Move Result into APSInt constructor (#153664) Static analysis flagged this line because we are copying Result instead of moving it. Added: Modified: clang/lib/AST/ByteCode/InterpBuiltin.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index b602b9731a6e3..d5dcb1f581198 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -2338,7 +2338,7 @@ static bool interp__builtin_elementwise_sat(InterpState &S, CodePtr OpPC, llvm_unreachable("Wrong builtin ID"); } - pushInteger(S, APSInt(Result, !LHS.isSigned()), Call->getType()); + pushInteger(S, APSInt(std::move(Result), !LHS.isSigned()), Call->getType()); return true; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits