Commits

Michael Ilseman committed 88060d580aa
[_BridgedNSError] Emit dynamic cast witness tables _BridgedNSError conformances can affect the runtime behavior of dynamic casts (e.g. 'is'). Unfortunately, the conformance is not always emitted, in an effort to save space when not used. This change forces the conformance witness tables to be emitted when we can detect a dynamic cast to an _BridgedNSError conforming enum. Test cases included, as well as a note about a potentially erroneous path that is not currently handled: when the dynamic cast occurs in a generic function to a generic type (and thus we are unsure which conformances we need to pull in).