danzimm added a comment. @rjmccall aha, right - thanks for explaining that to me (sorry for the bad logic I had earlier).
It turns out this was also broken for a lambda that was auto-converted to a function pointer who returned an ObjC object. I changed the test case to reflect the more general situation, but I'm still unsure about the quality of the tests. Is it ok to rely on optimization passes to inline certain calls? Repository: rC Clang https://reviews.llvm.org/D41050 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits