Remove an empty if and add a reminder for when we implement C++ try-catch.

llvm-svn: 59987
This commit is contained in:
Sebastian Redl 2008-11-24 21:45:59 +00:00
parent 18065ce9fc
commit 198a5838df
1 changed files with 1 additions and 4 deletions

View File

@ -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);