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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits