Skip to content

Conversation

bdash
Copy link
Contributor

@bdash bdash commented Jul 11, 2025

The __objc_ivar section contains values of type long for all architectures except arm64, where it contains int.

This fixes problems with resolving non-fragile ivar accesses to struct field accesses on arm64 and 32-bit architectures.

bdash added a commit that referenced this pull request Jul 11, 2025
The `__objc_ivar` section contains [values of type `long` for all
architectures except arm64, where it contains `int`][1].

This fixes problems with resolving non-fragile ivar accesses to struct
field accesses on arm64 and 32-bit architectures.

[1]: https://github.com/llvm/llvm-project/blob/535d6917ec3308ade866f205644b740666312342/clang/lib/CodeGen/CGObjCMac.cpp#L5628-L5629
@bdash bdash force-pushed the objc-ivar-offset-type branch from 88b70de to ae91b36 Compare July 13, 2025 17:06
@bdash bdash merged commit ae91b36 into dev Jul 13, 2025
1 check passed
@bdash bdash deleted the objc-ivar-offset-type branch July 13, 2025 17:08
@emesare emesare added this to the Helion milestone Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants