From: Eli Friedman Date: Tue, 16 Dec 2008 22:14:15 +0000 (+0000) Subject: Fix crash with -ast-dump in C++. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f595eb04a77d2544fac1f37e4b4c3183ac8c17f7;p=clang Fix crash with -ast-dump in C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61108 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index 9254d80da9..cc41642f94 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -490,8 +490,9 @@ namespace { Out << "Read objc implementation decl\n"; } else if (isa(D)) { Out << "Read objc category implementation decl\n"; - } - else { + } else if (isa(D)) { + Out << "Read linkage spec decl\n"; + } else { assert(0 && "Unknown decl type!"); } }