mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Code completion: fix crash on invalid protocol conformance
rdar://16723481 Swift SVN r16815
This commit is contained in:
@@ -1009,6 +1009,8 @@ public:
|
||||
TopConformances.end());
|
||||
while (!Worklist.empty()) {
|
||||
auto Conformance = Worklist.pop_back_val();
|
||||
if (!Conformance->isComplete())
|
||||
continue;
|
||||
Conformance->forEachTypeWitness(TypeResolver.get(),
|
||||
[&](const AssociatedTypeDecl *ATD,
|
||||
const Substitution &Subst) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user