Skip to content

Commit 4f6725c

Browse files
committed
AST: Pass allowMissing=true from getPackTypeConformance()
1 parent 661e861 commit 4f6725c

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
@@ -1898,15 +1898,17 @@ static ProtocolConformanceRef getPackTypeConformance(
18981898
auto patternConformance =
18991899
(patternType->isTypeParameter()
19001900
? ProtocolConformanceRef(protocol)
1901-
: mod->lookupConformance(patternType, protocol));
1901+
: mod->lookupConformance(patternType, protocol,
1902+
/*allowMissing=*/true));
19021903
patternConformances.push_back(patternConformance);
19031904
continue;
19041905
}
19051906

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

0 commit comments

Comments
 (0)