summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-16 22:46:09 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-16 22:46:09 +0000
commit8655e88603611ca52c648ed21b476274be2ffb8d (patch)
treefa6f295d33489adca0c56985a316279d85794bb2 /clang/lib/AST/StmtPrinter.cpp
parent1f1a097f660c1dbbd02c4bdbde4f9815cef91794 (diff)
downloadbcm5719-llvm-8655e88603611ca52c648ed21b476274be2ffb8d.tar.gz
bcm5719-llvm-8655e88603611ca52c648ed21b476274be2ffb8d.zip
While writing source-location entries to a PCH file, go through an
interface that can load those source-location entries on demand (from another PCH file). llvm-svn: 84287
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 05d0c268354..2af19765dfa 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1289,7 +1289,7 @@ void Stmt::printPretty(llvm::raw_ostream &OS, ASTContext& Context,
return;
}
- if (Policy.Dump) {
+ if (Policy.Dump && &Context) {
dump(Context.getSourceManager());
return;
}
OpenPOWER on IntegriCloud