[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 3 12:15:45 PDT 2025
================
@@ -260,7 +260,7 @@ static IntegerRange createFromType(const ASTContext &Context,
llvm::APSInt LowerValue(PrecisionBits + 2, /*isUnsigned*/ false);
LowerValue.setBit(PrecisionBits);
LowerValue.setSignBit();
- return {LowerValue, UpperValue};
+ return {std::move(LowerValue), UpperValue};
----------------
zahiraam wrote:
> this doesn't have any impact. And if using move, why not for a second too
Good point. I was only addressing the issues that the sanitizer identified.
https://github.com/llvm/llvm-project/pull/134138
More information about the cfe-commits
mailing list