mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
use new llvm::Optional APIs to fix deprecation warnings
This commit is contained in:
@@ -3232,7 +3232,7 @@ RestrictedImportKind SourceFile::getRestrictedImportKind(const ModuleDecl *modul
|
||||
|
||||
ImportAccessLevel
|
||||
SourceFile::getImportAccessLevel(const ModuleDecl *targetModule) const {
|
||||
assert(Imports.hasValue());
|
||||
assert(Imports.has_value());
|
||||
|
||||
// Leave it to the caller to avoid calling this service for a self import.
|
||||
// We want to return AccessLevel::Public, but there's no import site to return.
|
||||
|
||||
Reference in New Issue
Block a user