================ @@ -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 is the error message: " LowerValue is passed-by-value as parameter to llvm::APSInt::APSInt(llvm::APSInt const &) /*implicit =default*/, when it could be moved instead" "Use std::move(LowerValue) instead of LowerValue." https://github.com/llvm/llvm-project/pull/134138 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits