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; }