[llvm] [LLVM] Use `std::move` for APInt. NFC. (PR #86257)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 22 03:06:10 PDT 2024
================
@@ -215,7 +216,8 @@ template <typename T, class C> struct SizeOffsetType {
/// \p APInts.
struct SizeOffsetAPInt : public SizeOffsetType<APInt, SizeOffsetAPInt> {
SizeOffsetAPInt() = default;
- SizeOffsetAPInt(APInt Size, APInt Offset) : SizeOffsetType(Size, Offset) {}
+ SizeOffsetAPInt(APInt Size, APInt Offset)
+ : SizeOffsetType(std::move(Size), std::move(Offset)) {}
static bool known(APInt V) { return V.getBitWidth() > 1; }
----------------
dtcxzyw wrote:
https://github.com/dtcxzyw/llvm-project/commit/32d6611af69bf4e76373f9bc7d9649650f760e48
I will file a separate PR later.
https://github.com/llvm/llvm-project/pull/86257
More information about the llvm-commits
mailing list