[ASTReader] Improve ReadASTBlock error message when module not available
Point to the PCM file that could not be found.
rdar://problem/30381981
llvm-svn: 294362
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 67c7e46..1b65ecb 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -2965,7 +2965,10 @@
Data += Len;
ModuleFile *OM = ModuleMgr.lookup(Name);
if (!OM) {
- Error("SourceLocation remap refers to unknown module");
+ std::string Msg =
+ "SourceLocation remap refers to unknown module, cannot find ";
+ Msg.append(Name);
+ Error(Msg);
return Failure;
}