mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] "SwiftVersion" → "LanguageMode" in DiagnosticEngine::warnUntilSwiftVersion, etc.
This commit is contained in:
@@ -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.LangOpts.isSwiftVersionAtLeast(6) &&
|
||||
if (!ctx.isLanguageModeAtLeast(6) &&
|
||||
(SDKPath.empty() ||
|
||||
!Core->ModuleInputBuffer->getBufferIdentifier().starts_with(SDKPath))) {
|
||||
for (const auto &searchPath : Core->SearchPaths) {
|
||||
|
||||
Reference in New Issue
Block a user