[PATCH] D11305: [Sema] Emit correct warning when copy-elision is not possible.
Davide Italiano
dccitaliano at gmail.com
Fri Jul 17 11:26:43 PDT 2015
davide created this revision.
davide added reviewers: rsmith, rtrieu.
davide added a subscriber: cfe-commits.
davide set the repository for this revision to rL LLVM.
As Richard notes in PR23819, if we're returning a function parameter, copy elision isn't possible.
Repository:
rL LLVM
http://reviews.llvm.org/D11305
Files:
lib/Sema/SemaInit.cpp
test/SemaCXX/warn-pessmizing-move.cpp
test/SemaCXX/warn-redundant-move.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11305.30019.patch
Type: text/x-patch
Size: 3751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/dc671b1f/attachment.bin>
More information about the cfe-commits
mailing list