mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The logic for different special cases of type casting is spread over multiple places currently. This patch simply re-factors some of that code (folding of of type casts using statically known protocol conformances) and moves it into one central place, which makes it easier to maintain. Plus, it allows other clients of DynamicCasts benefit from it as well, e.g. the inliner can use this now. NFC. Swift SVN r25486
25 KiB
25 KiB