summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-22 19:15:10 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-22 19:15:10 +0000
commit54c04d4700beb8c18522363416530ad81a1b4fa1 (patch)
tree086e597e1bb30fbbeb9e01cb11604569066c85f6 /clang/lib/Parse/ParseStmt.cpp
parented4c443193084fae0bef165d67531624cfeee30f (diff)
downloadbcm5719-llvm-54c04d4700beb8c18522363416530ad81a1b4fa1.tar.gz
bcm5719-llvm-54c04d4700beb8c18522363416530ad81a1b4fa1.zip
Partial AST and Sema support for C++ try-catch.
llvm-svn: 61337
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 81a9765555d..c853ecf8842 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1314,7 +1314,8 @@ Parser::OwningStmtResult Parser::ParseCXXCatchBlock() {
DeclTy *ExceptionDecl = 0;
if (Tok.isNot(tok::ellipsis)) {
DeclSpec DS;
- ParseDeclarationSpecifiers(DS);
+ if (ParseCXXTypeSpecifierSeq(DS))
+ return StmtError();
Declarator ExDecl(DS, Declarator::CXXCatchContext);
ParseDeclarator(ExDecl);
ExceptionDecl = Actions.ActOnExceptionDeclarator(CurScope, ExDecl);
OpenPOWER on IntegriCloud