diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-21 19:38:21 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-21 19:38:21 +0000 |
| commit | f282a76fab30db288d35280c8ad2954db8c9f9b5 (patch) | |
| tree | 8f535567924d49fda3d7e7287befb239b0a01da6 /clang/lib/Sema/AnalysisBasedWarnings.cpp | |
| parent | 2f2435d026fdc8259048fdd03156ec6f119d9d9c (diff) | |
| download | bcm5719-llvm-f282a76fab30db288d35280c8ad2954db8c9f9b5.tar.gz bcm5719-llvm-f282a76fab30db288d35280c8ad2954db8c9f9b5.zip | |
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.
llvm-svn: 123992
Diffstat (limited to 'clang/lib/Sema/AnalysisBasedWarnings.cpp')
0 files changed, 0 insertions, 0 deletions

