Fix assertion error.

llvm-svn: 196863
This commit is contained in:
John Thompson
2013-12-10 02:26:44 +00:00
parent d2589607e8
commit e744d2b92d

View File

@@ -715,7 +715,7 @@ int main(int Argc, const char **Argv) {
}
// If we are in assistant mode, output the module map and quit.
if (ModuleMapPath[0]) {
if (ModuleMapPath.length() != 0) {
if (!createModuleMap(ModuleMapPath, Headers, Dependencies, HeaderPrefix,
RootModule))
return 1; // Failed.