swift
1f3bff3f - IRGen: fix failing unconditional class casts

Commit
203 days ago
IRGen: fix failing unconditional class casts 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
Author
Committer
Parents
Loading