mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
[APFloat] Use std::move() in move assignment operator
llvm-svn: 285442
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user