Skip to content

Commit c51acef

Browse files
committed
Removed the potential antipattern in clang-tidy.
1 parent c9bfb44 commit c51acef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static IntegerRange createFromType(const ASTContext &Context,
260260
llvm::APSInt LowerValue(PrecisionBits + 2, /*isUnsigned*/ false);
261261
LowerValue.setBit(PrecisionBits);
262262
LowerValue.setSignBit();
263-
return {std::move(LowerValue), UpperValue};
263+
return {LowerValue, UpperValue};
264264
}
265265
assert(T.isInteger() && "Unexpected builtin type");
266266
uint64_t TypeSize = Context.getTypeSize(&T);

0 commit comments

Comments
 (0)