[cfe-commits] r61108 - /cfe/trunk/Driver/ASTConsumers.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Dec 16 14:14:17 PST 2008
Author: efriedma
Date: Tue Dec 16 16:14:15 2008
New Revision: 61108
URL: http://llvm.org/viewvc/llvm-project?rev=61108&view=rev
Log:
Fix crash with -ast-dump in C++.
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=61108&r1=61107&r2=61108&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Tue Dec 16 16:14:15 2008
@@ -490,8 +490,9 @@
Out << "Read objc implementation decl\n";
} else if (isa<ObjCCategoryImplDecl>(D)) {
Out << "Read objc category implementation decl\n";
- }
- else {
+ } else if (isa<LinkageSpecDecl>(D)) {
+ Out << "Read linkage spec decl\n";
+ } else {
assert(0 && "Unknown decl type!");
}
}
More information about the cfe-commits
mailing list