mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Cleanup deprecated Optional API usage in depscan
This commit is contained in:
@@ -1182,7 +1182,7 @@ std::error_code ModuleInterfaceLoader::findModuleFilesInDirectory(
|
||||
|
||||
// First check to see if the .swiftinterface exists at all. Bail if not.
|
||||
auto &fs = *Ctx.SourceMgr.getFileSystem();
|
||||
std::string InPath = BaseName.findInterfacePath(fs).getValueOr("");
|
||||
std::string InPath = BaseName.findInterfacePath(fs).value_or("");
|
||||
if (InPath.empty()) {
|
||||
if (fs.exists(ModPath)) {
|
||||
LLVM_DEBUG(llvm::dbgs()
|
||||
|
||||
Reference in New Issue
Block a user