Skip to content

Commit 85b8f27

Browse files
committed
AST: Pass allowMissing=true from getPackTypeConformance()
1 parent 4604252 commit 85b8f27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/AST/Module.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,15 +1899,17 @@ static ProtocolConformanceRef getPackTypeConformance(
18991899
auto patternConformance =
19001900
(patternType->isTypeParameter()
19011901
? ProtocolConformanceRef(protocol)
1902-
: mod->lookupConformance(patternType, protocol));
1902+
: mod->lookupConformance(patternType, protocol,
1903+
/*allowMissing=*/true));
19031904
patternConformances.push_back(patternConformance);
19041905
continue;
19051906
}
19061907

19071908
auto patternConformance =
19081909
(packElement->isTypeParameter()
19091910
? ProtocolConformanceRef(protocol)
1910-
: mod->lookupConformance(packElement, protocol));
1911+
: mod->lookupConformance(packElement, protocol,
1912+
/*allowMissing=*/true));
19111913
patternConformances.push_back(patternConformance);
19121914
}
19131915

0 commit comments

Comments
 (0)