The runtime technically has a distinction between ClassMetadata, which models the metadata of a pure Swift class, and AnyClassMetadata, which might be a Swift class or an Objective-C class. However, we use ClassMetadata in a lot of places where we really mean AnyClassMetadata. We're pretty good about checking for isTypeMetadata() before using any other members, but Clang is totally within its rights to hoist loads past those checks.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 3dc36eb46eda548c07ef625731fe4265
Issue Description:
The runtime technically has a distinction between ClassMetadata, which models the metadata of a pure Swift class, and AnyClassMetadata, which might be a Swift class or an Objective-C class. However, we use ClassMetadata in a lot of places where we really mean AnyClassMetadata. We're pretty good about checking for
isTypeMetadata()
before using any other members, but Clang is totally within its rights to hoist loads past those checks.The text was updated successfully, but these errors were encountered: