Files
Slava Pestov b4e7d7c60c AST: Simplify RequirementEnvironment::RequirementEnvironment()
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.
2026-06-08 17:55:28 -04:00
..