Commits

Roman Levenstein committed c97f748fb9a
Move the logic for folding type casts using statically known protocol conformances into DynamicCasts.cpp. 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