Do not attempt to parse the PlaceholderSwiftModule map when not present

This commit is contained in:
Artem Chikin
2020-07-30 17:06:20 -07:00
parent 1420a3876f
commit f894131ef1
2 changed files with 4 additions and 2 deletions

View File

@@ -131,7 +131,9 @@ public:
// FIXME: Find a better place for this map to live, to avoid
// doing the parsing on every module.
parsePlaceholderModuleMap(PlaceholderDependencyModuleMap);
if (!PlaceholderDependencyModuleMap.empty()) {
parsePlaceholderModuleMap(PlaceholderDependencyModuleMap);
}
}
std::error_code findModuleFilesInDirectory(