mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When unconditionally casting from a base to a final derived class, e.g. `base as! Derived`, the program did not abort with a trap. Instead the resulting null-pointer caused a crash later in the program. This fix inserts a trap condition for the failing case of such a cast. rdar://151462303
6.3 KiB
6.3 KiB