r294362 - [ASTReader] Improve ReadASTBlock error message when module not available
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 7 13:55:02 PST 2017
Author: bruno
Date: Tue Feb 7 15:55:02 2017
New Revision: 294362
URL: http://llvm.org/viewvc/llvm-project?rev=294362&view=rev
Log:
[ASTReader] Improve ReadASTBlock error message when module not available
Point to the PCM file that could not be found.
rdar://problem/30381981
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=294362&r1=294361&r2=294362&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Tue Feb 7 15:55:02 2017
@@ -2965,7 +2965,10 @@ ASTReader::ReadASTBlock(ModuleFile &F, u
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;
}
More information about the cfe-commits
mailing list