aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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