[PATCH] D30174: [Sema][ObjC] Warn about 'performSelector' calls with selectors that return record types

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 20 13:41:14 PST 2017


ahatanak added a comment.

Do we still issue a warning even when the struct can be returned in a register? For example, x86 can return a small struct (for example, a struct with one int field) in a single register, in which case it's fine to pass it to performSelector via @selector.

If we should warn only when the method has to return via sret, then it looks like we have to delay issuing the warning until we know where the return value goes (IRGen?).


Repository:
  rL LLVM

https://reviews.llvm.org/D30174





More information about the cfe-commits mailing list