[APFloat] Use std::move() in move assignment operator
authorTim Shen <timshen91@gmail.com>
Fri, 28 Oct 2016 20:13:06 +0000 (20:13 +0000)
committerTim Shen <timshen91@gmail.com>
Fri, 28 Oct 2016 20:13:06 +0000 (20:13 +0000)
llvm-svn: 285442

llvm/include/llvm/ADT/APFloat.h

index 8e934d3..3f07327 100644 (file)
@@ -712,7 +712,7 @@ class APFloat : public APFloatBase {
         Double = std::move(RHS.Double);
       } else if (this != &RHS) {
         this->~Storage();
-        new (this) Storage(RHS);
+        new (this) Storage(std::move(RHS));
       }
       return *this;
     }