From 717d9a1a7a41ca2cb1d986951ada58b945ccc9ef Mon Sep 17 00:00:00 2001 From: Tim Shen Date: Fri, 28 Oct 2016 20:13:06 +0000 Subject: [PATCH] [APFloat] Use std::move() in move assignment operator llvm-svn: 285442 --- llvm/include/llvm/ADT/APFloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h index 8e934d3299ae..3f07327cb2ad 100644 --- a/llvm/include/llvm/ADT/APFloat.h +++ b/llvm/include/llvm/ADT/APFloat.h @@ -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; }