diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2017-06-15 00:00:08 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2017-06-15 00:00:08 +0000 |
commit | 785449800e4eb3d9e35f0dc6c6f1f20bd5306cfd (patch) | |
tree | 2f76c82c8e8623cf6e3135aa610ebd8748f76178 /lib/Frontend/ASTConsumers.cpp | |
parent | bdfd67ac5ada2f9aa15f61293a861f2aa4e69c84 (diff) |
Handle -ast-dump-all when passed as the only option.
Patch by Don Hinton
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTConsumers.cpp')
-rw-r--r-- | lib/Frontend/ASTConsumers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/ASTConsumers.cpp b/lib/Frontend/ASTConsumers.cpp index 720baa5e0f..7dc475e26f 100644 --- a/lib/Frontend/ASTConsumers.cpp +++ b/lib/Frontend/ASTConsumers.cpp @@ -142,7 +142,7 @@ std::unique_ptr<ASTConsumer> clang::CreateASTDumper(StringRef FilterString, bool DumpDecls, bool Deserialize, bool DumpLookups) { - assert((DumpDecls || DumpLookups) && "nothing to dump"); + assert((DumpDecls || Deserialize || DumpLookups) && "nothing to dump"); return llvm::make_unique<ASTPrinter>(nullptr, Deserialize ? ASTPrinter::DumpFull : DumpDecls ? ASTPrinter::Dump : |