mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
b4e7d7c60c
Past me thought this code was clever because it avoided a redundant lookup of the conformance we're checking. But present me thinks this is over-engineered, and deleting it is the easiest way to fix a crash. This actually doesn't fix the root cause of the crash, which is that getSuperclass() and getSuperclassDecl() might return different results, with the former failing to resolve even when the latter returns a valid Decl, because the latter goes via a simpler lookup mechanism. However, I think simplifying this code is good regardless. Fixes rdar://177691260.