diff options
author | Richard Trieu <rtrieu@google.com> | 2015-04-30 23:07:00 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-04-30 23:07:00 +0000 |
commit | 6ae37961a8d8538d254e4e4aa1dc60026fe381a2 (patch) | |
tree | d482bdd17df2c6880c06c07bd186942303060cf3 /llvm/lib/Support | |
parent | 2e5d484597ff0ab232f8db03c5e2bb2933cdb88e (diff) | |
download | bcm5719-llvm-6ae37961a8d8538d254e4e4aa1dc60026fe381a2.tar.gz bcm5719-llvm-6ae37961a8d8538d254e4e4aa1dc60026fe381a2.zip |
Fix -Wpessimizing-move warnings by removing std::move calls.
llvm-svn: 236278
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 5a402bb2804..4b0a0e5d481 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -3920,7 +3920,7 @@ APFloat::makeZero(bool Negative) { APFloat llvm::scalbn(APFloat X, int Exp) { if (X.isInfinity() || X.isZero() || X.isNaN()) - return std::move(X); + return X; auto MaxExp = X.getSemantics().maxExponent; auto MinExp = X.getSemantics().minExponent; @@ -3932,5 +3932,5 @@ APFloat llvm::scalbn(APFloat X, int Exp) { return APFloat::getZero(X.getSemantics(), X.isNegative()); X.exponent += Exp; - return std::move(X); + return X; } |