[PATCH] D14737: Convert some ObjC msgSends to runtime calls

Pete Cooper via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 15 11:35:30 PDT 2016


pete added a comment.

In http://reviews.llvm.org/D14737#375735, @rjmccall wrote:

> Can you find where that bitcast is being added?  I know that different parts of IRGen are differently sensitive to types — it's possible that the return code is one of those more-permissive places.


Sure, will do.

I should say that the bit cast here is my doing.  I should have said that I added code to emitARCValueOperation which optionally takes a return type to cast to, instead of always casting to the receiver type as you noted it was doing before.  But as you point out, even without that change, the IR is still getting bit casts when needed.


http://reviews.llvm.org/D14737





More information about the cfe-commits mailing list