[PATCH] D29908: Disallow returning a __block variable via a move

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 14 11:09:56 PST 2017


ahatanak added a comment.

Posting John's review comment, which was sent to the review I abandoned:

"Hmm.  The behavior I think we actually want here is that we should move out of the __block variable but not perform NRVO, essentially like we would if the variable were a parameter.

The block byref copy helper should always be doing a move if it can, regardless of whether the function is returned.  That's independent of this, though."


https://reviews.llvm.org/D29908





More information about the cfe-commits mailing list