summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 454d7bd4fce..7b3fe7876be 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud