[APInt] Use b.negate() in place of b = -std::move(b). NFCI

llvm-svn: 303411
This commit is contained in:
Craig Topper 2017-05-19 07:37:25 +00:00
parent bdc16ed072
commit 796d5ffaab
1 changed files with 2 additions and 2 deletions

View File

@ -2015,7 +2015,7 @@ inline APInt operator-(APInt a, const APInt &b) {
}
inline APInt operator-(const APInt &a, APInt &&b) {
b = -std::move(b);
b.negate();
b += a;
return std::move(b);
}
@ -2026,7 +2026,7 @@ inline APInt operator-(APInt a, uint64_t RHS) {
}
inline APInt operator-(uint64_t LHS, APInt b) {
b = -std::move(b);
b.negate();
b += LHS;
return b;
}