aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-11-24 21:45:59 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-11-24 21:45:59 +0000
commit618e5c04702b156d75aa2636232ef8430912abdc (patch)
treef0b49514c10329020e56aea3cd766e2cdd8be093 /lib/Parse/Parser.cpp
parent8ffc8a571f55ca0e6ac86aa1a827d8a54db9a6ce (diff)
Remove an empty if and add a reminder for when we implement C++ try-catch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r--lib/Parse/Parser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index 4e27e718f8..f00eaeb17b 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -497,12 +497,9 @@ Parser::DeclTy *Parser::ParseFunctionDefinition(Declarator &D) {
if (!FTI.hasPrototype && FTI.NumArgs != 0)
ParseKNRParamDeclarations(D);
- if (getLang().CPlusPlus && Tok.is(tok::colon)) {
-
- }
-
// We should have either an opening brace or, in a C++ constructor,
// we may have a colon.
+ // FIXME: In C++, we might also find the 'try' keyword.
if (Tok.isNot(tok::l_brace) && Tok.isNot(tok::colon)) {
Diag(Tok, diag::err_expected_fn_body);