Switch ASTContext::isLanguageModeAtLeast to LanguageMode

This commit is contained in:
Anthony Latsis
2026-01-29 15:31:26 +00:00
parent 31cafb0a27
commit 85db41932d
46 changed files with 166 additions and 151 deletions

View File

@@ -296,7 +296,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) {