aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-07 00:54:14 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-07 00:54:14 +0000
commitf64114b2aa611a66fc97e6bd8f35b0b039a4500a (patch)
tree8c078132049f1b8c5d388509770ccc68fb8fc44c /lib/Frontend/CompilerInstance.cpp
parentaa9c3503867bc52e1f61c4da676116db1b1cdf01 (diff)
If we can't write the temporary module map file when compiling a
module, at least have the decency to complain about it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r--lib/Frontend/CompilerInstance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 454d7bd4fc..7b3fe7876b 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -1026,7 +1026,8 @@ static void compileModule(CompilerInstance &ImportingInstance,
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.