projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e704506
)
[APFloat] Use std::move() in move assignment operator
author
Tim Shen
<timshen91@gmail.com>
Fri, 28 Oct 2016 20:13:06 +0000
(20:13 +0000)
committer
Tim Shen
<timshen91@gmail.com>
Fri, 28 Oct 2016 20:13:06 +0000
(20:13 +0000)
llvm-svn: 285442
llvm/include/llvm/ADT/APFloat.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/APFloat.h
b/llvm/include/llvm/ADT/APFloat.h
index
8e934d3
..
3f07327
100644
(file)
--- 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;
}