Remove std::move on return when it could prevent copy elision.
[oota-llvm.git] / include / llvm / ADT / APFloat.h
index 53b53c5dfa546df940a2a003028b23c3db68e4dd..958e3fdaea14dc69255db32a4ba2cfa8d5f16f8c 100644 (file)
@@ -343,7 +343,7 @@ public:
   /// copied from some other APFloat.
   static APFloat copySign(APFloat Value, const APFloat &Sign) {
     Value.copySign(Sign);
-    return std::move(Value);
+    return Value;
   }
 
   /// @}