Skip to content

Commit 25cae6f

Browse files
committed
RequirementMachine: Ignore requirements with ErrorTypes for GSB compatibility
1 parent 9bb497c commit 25cae6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/RequirementMachine/RequirementLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ static void desugarSameTypeRequirement(Type lhs, Type rhs,
8787
}
8888
} matcher(result);
8989

90+
if (lhs->hasError() || rhs->hasError())
91+
return;
92+
9093
// FIXME: Record redundancy and diagnose upstream
9194
(void) matcher.match(lhs, rhs);
9295
}

0 commit comments

Comments
 (0)