Skip to content

Commit 18b8db0

Browse files
committed
AST: Add a FIXME
1 parent c355e9c commit 18b8db0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/SubstitutionMap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ SubstitutionMap::lookupConformance(CanType type, ProtocolDecl *proto) const {
267267

268268
// If the protocol is invertible, fall back to a global lookup instead of
269269
// evaluating a conformance path, to avoid an infinite substitution issue.
270+
//
271+
// FIXME: Figure out a more principled way of breaking this cycle.
270272
if (proto->getInvertibleProtocolKind())
271273
return swift::lookupConformance(type.subst(*this), proto);
272274

0 commit comments

Comments
 (0)