You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
There were some speculative patches for objc_msgSend, but it turns out that the compiler skips the send entirely if the target is known to be nil. We need to investigate either implementing a nil-initializer in the compiler, or make a thorough pass through the codebase to make sure we're not relying on this behavior for complex types, followed by educating the team against sending messages to nil.
For example; this call is returning a completely bogus CGRect when 'image' is nil:
There were some speculative patches for objc_msgSend, but it turns out that the compiler skips the send entirely if the target is known to be nil. We need to investigate either implementing a nil-initializer in the compiler, or make a thorough pass through the codebase to make sure we're not relying on this behavior for complex types, followed by educating the team against sending messages to nil.
For example; this call is returning a completely bogus CGRect when 'image' is nil: