If we can't write the temporary module map file when compiling a
module, at least have the decency to complain about it.
llvm-svn: 146002
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 454d7bd..7b3fe78 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1026,7 +1026,8 @@
TempModuleMapFileName,
/*makeAbsolute=*/true)
!= llvm::errc::success) {
- // FIXME: Give a sensible error message here.
+ ImportingInstance.getDiagnostics().Report(diag::err_module_map_temp_file)
+ << TempModuleMapFileName;
return;
}
// Print the module map to this file.