[PATCH] D56802: [CodeGenObjC] Treat ivar offsets variables as constant if they refer to ivars of a direct subclass of NSObject with an @implementation

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 16 21:10:29 PST 2019


rjmccall added a comment.

Emitting the global as `const` is probably still a good idea; if the global actually gets mapped as a constant, we'll end up making a dynamic assertion that we got the offset right.  It's possible that the section will inhibit that, though.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56802/new/

https://reviews.llvm.org/D56802





More information about the cfe-commits mailing list