[cfe-commits] r106830 - /cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Jun 25 02:03:13 PDT 2010
Author: akirtzidis
Date: Fri Jun 25 04:03:12 2010
New Revision: 106830
URL: http://llvm.org/viewvc/llvm-project?rev=106830&view=rev
Log:
Print source location when we encounter unhandled statement during PCH writing.
Modified:
cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
Modified: cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterStmt.cpp?rev=106830&r1=106829&r2=106830&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterStmt.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterStmt.cpp Fri Jun 25 04:03:12 2010
@@ -1113,7 +1113,9 @@
#ifndef NDEBUG
if (Writer.Code == pch::STMT_NULL_PTR) {
- S->dump();
+ SourceManager &SrcMgr
+ = DeclIDs.begin()->first->getASTContext().getSourceManager();
+ S->dump(SrcMgr);
assert(0 && "Unhandled sub statement writing PCH file");
}
#endif
More information about the cfe-commits
mailing list