Merge pull request #86956 from swiftlang/jepa-main

Basic: Introduce a safe, structured representation for language modes
This commit is contained in:
Anthony Latsis
2026-02-10 21:03:03 +00:00
committed by GitHub
84 changed files with 736 additions and 461 deletions

View File

@@ -300,7 +300,7 @@ Status ModuleFile::associateWithFileContext(FileUnit *file, SourceLoc diagLoc,
StringRef SDKPath = ctx.SearchPathOpts.getSDKPath();
// In Swift 6 mode, we do not inherit search paths from loaded non-SDK modules.
if (!ctx.isLanguageModeAtLeast(6) &&
if (!ctx.isLanguageModeAtLeast(LanguageMode::v6) &&
(SDKPath.empty() ||
!Core->ModuleInputBuffer->getBufferIdentifier().starts_with(SDKPath))) {
for (const auto &searchPath : Core->SearchPaths) {