[llvm] r285442 - [APFloat] Use std::move() in move assignment operator
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 31 09:45:44 PDT 2016
Is this reasonably testable?
On Fri, Oct 28, 2016 at 1:22 PM Tim Shen via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: timshen
> Date: Fri Oct 28 15:13:06 2016
> New Revision: 285442
>
> URL: http://llvm.org/viewvc/llvm-project?rev=285442&view=rev
> Log:
> [APFloat] Use std::move() in move assignment operator
>
> Modified:
> llvm/trunk/include/llvm/ADT/APFloat.h
>
> Modified: llvm/trunk/include/llvm/ADT/APFloat.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=285442&r1=285441&r2=285442&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/ADT/APFloat.h (original)
> +++ llvm/trunk/include/llvm/ADT/APFloat.h Fri Oct 28 15:13:06 2016
> @@ -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;
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161031/c88c6a93/attachment-0001.html>
More information about the llvm-commits
mailing list