Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2023-09-25 01:17:00 -07:00
3 changed files with 29 additions and 0 deletions

View File

@@ -1319,6 +1319,8 @@ bool IRGenerator::canEmitWitnessTableLazily(SILWitnessTable *wt) {
}
void IRGenerator::addLazyWitnessTable(const ProtocolConformance *Conf) {
assert(!SIL.getASTContext().LangOpts.hasFeature(Feature::Embedded));
if (auto *wt = SIL.lookUpWitnessTable(Conf)) {
// Add it to the queue if it hasn't already been put there.
if (canEmitWitnessTableLazily(wt) &&