[NFC] Cleanup deprecated Optional API usage in depscan

This commit is contained in:
Steven Wu
2023-06-23 14:12:16 -07:00
parent b78b569450
commit 284eb2a264
3 changed files with 7 additions and 7 deletions

View File

@@ -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()