swift
a226f8db - Suppress inference of @_staticInitializeObjCMetadata for "newer" classes.

Commit
7 years ago
Suppress inference of @_staticInitializeObjCMetadata for "newer" classes. If a class was introduced in an OS newer than the deployment target, suppress the inference of @_staticInitializeObjCMetadata, because the resulting eager initialization will crash when run on older OS's. This is a stop-gap solution; we want the eager initialization code to check availability before registering the class, but that requires more effort. Fixes the main part of SR-6203 / rdar://problem/35161939. (cherry picked from commit 587cd4e46397583aae0019f53525b8e29c6906f8)
Author
Committer
Parents
Loading