mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -1033,7 +1033,7 @@ void ModuleDependenciesCacheSerializer::collectStringsAndArrays(
|
||||
for (auto &moduleID : cache.getAllNonSourceModules(contextHash)) {
|
||||
auto optionalDependencyInfo = cache.findDependency(moduleID.first, moduleID.second);
|
||||
assert(optionalDependencyInfo.has_value() && "Expected dependency info.");
|
||||
auto dependencyInfo = optionalDependencyInfo.getValue();
|
||||
auto dependencyInfo = optionalDependencyInfo.value();
|
||||
// Add the module's name
|
||||
addIdentifier(moduleID.first);
|
||||
// Add the module's dependencies
|
||||
|
||||
Reference in New Issue
Block a user