commit | cc15f010672a13b38104a32e3cefc7adc07ffbf7 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Fri Jan 21 19:38:21 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Fri Jan 21 19:38:21 2011 +0000 |
tree | 6d229587f576842290d3770ef4aa8518cd7b1abc | |
parent | 4a46c77813af1241139b81a086b539e4d734cb86 [diff] |
Implement the preference for move-construction over copy-construction when returning an NRVO candidate expression. For example, this properly picks the move constructor when dealing with code such as MoveOnlyType f() { MoveOnlyType mot; return mot; } The previously-XFAIL'd rvalue-references test case now works, and has been moved into the appropriate paragraph-specific test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123992 91177308-0d34-0410-b5e6-96231b3b80d8