aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriterStmt.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-25 09:03:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-25 09:03:12 +0000
commit12bf28f398b5f1684ceb8b471e6ebab360c2b4fd (patch)
tree7a445c44f8a8dc31476f226a3869bb188139a93c /lib/Frontend/PCHWriterStmt.cpp
parentdd4877a3d4815ccf019df681c1400a6105804f22 (diff)
Print source location when we encounter unhandled statement during PCH writing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriterStmt.cpp')
-rw-r--r--lib/Frontend/PCHWriterStmt.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Frontend/PCHWriterStmt.cpp b/lib/Frontend/PCHWriterStmt.cpp
index 66e1529ac6..88554b7a89 100644
--- a/lib/Frontend/PCHWriterStmt.cpp
+++ b/lib/Frontend/PCHWriterStmt.cpp
@@ -1113,7 +1113,9 @@ void PCHWriter::WriteSubStmt(Stmt *S) {
#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