mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
As an optimization, there is a fast-cast to non-final classes that just compares isa pointers. If the source of the cast is an Optional<class>, though, it's not allowed to "directly compare the isa-pointer"; because the source might be Optional.none, i.e. null. Add a check for nil when emitting the fast class cast. rdar://108614878
42 KiB
42 KiB