mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
change to the new llvm::Optional APIs
This is a follow-up of https://github.com/apple/swift/pull/62217
This commit is contained in:
@@ -274,8 +274,8 @@ bool ClangImporter::addBridgingHeaderDependencies(
|
||||
ModuleDependenciesCache &cache) {
|
||||
auto &ctx = Impl.SwiftContext;
|
||||
auto optionalTargetModule = cache.findDependency(moduleName, moduleKind);
|
||||
assert(optionalTargetModule.hasValue());
|
||||
auto targetModule = *(optionalTargetModule.getValue());
|
||||
assert(optionalTargetModule.has_value());
|
||||
auto targetModule = *(optionalTargetModule.value());
|
||||
|
||||
// If we've already recorded bridging header dependencies, we're done.
|
||||
if (auto swiftInterfaceDeps = targetModule.getAsSwiftInterfaceModule()) {
|
||||
|
||||
Reference in New Issue
Block a user