mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
4.1 KiB
4.1 KiB