From b3c6b68166ed75de6611247e0c1bd60f7c128253 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285442 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APFloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 8e934d3299a..3f07327cb2a 100644 --- a/include/llvm/ADT/APFloat.h +++ b/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; } -- 2.40.0