Skip to content

Commit 8fe939f

Browse files
committed
Avoid enabling loaded module verification after WMO until playgrounds is fixed.
playground_lvalues.swift: use of unresolved identifier '$builtin_log_with_id' Additional verification could expose this problem elsewhere. It will be enable on master later, but not as part of this PR. (cherry picked from commit d885078)
1 parent 283f73b commit 8fe939f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Sema/TypeChecker.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,16 @@ void swift::performWholeModuleTypeChecking(SourceFile &SF) {
703703
// been type checked. This avoids caching imported declarations when a valid
704704
// type checker is not present. The same declaration may need to be fully
705705
// imported by subsequent files.
706+
//
707+
// FIXME: some playgrounds tests (playground_lvalues.swift) fail with
708+
// verification enabled.
709+
#if 0
706710
if (SF.Kind != SourceFileKind::REPL &&
707711
SF.Kind != SourceFileKind::SIL &&
708712
!Ctx.LangOpts.DebuggerSupport) {
709713
Ctx.verifyAllLoadedModules();
710714
}
715+
#endif
711716
}
712717

713718
bool swift::performTypeLocChecking(ASTContext &Ctx, TypeLoc &T,

0 commit comments

Comments
 (0)