diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-16 22:46:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-16 22:46:09 +0000 |
commit | 8655e88603611ca52c648ed21b476274be2ffb8d (patch) | |
tree | fa6f295d33489adca0c56985a316279d85794bb2 /clang/lib/AST/StmtPrinter.cpp | |
parent | 1f1a097f660c1dbbd02c4bdbde4f9815cef91794 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |