forked from OSchip/llvm-project
Removing an outdated FIXME; try block attributes are parsed with the rest of the statement attributes (as per the standard), and function-try-blocks may not have attributes. NFC.
llvm-svn: 224662
This commit is contained in:
parent
ad344aff50
commit
a7a715698a
|
@ -1959,7 +1959,6 @@ StmtResult Parser::ParseCXXTryBlock() {
|
||||||
StmtResult Parser::ParseCXXTryBlockCommon(SourceLocation TryLoc, bool FnTry) {
|
StmtResult Parser::ParseCXXTryBlockCommon(SourceLocation TryLoc, bool FnTry) {
|
||||||
if (Tok.isNot(tok::l_brace))
|
if (Tok.isNot(tok::l_brace))
|
||||||
return StmtError(Diag(Tok, diag::err_expected) << tok::l_brace);
|
return StmtError(Diag(Tok, diag::err_expected) << tok::l_brace);
|
||||||
// FIXME: Possible draft standard bug: attribute-specifier should be allowed?
|
|
||||||
|
|
||||||
StmtResult TryBlock(ParseCompoundStatement(/*isStmtExpr=*/false,
|
StmtResult TryBlock(ParseCompoundStatement(/*isStmtExpr=*/false,
|
||||||
Scope::DeclScope | Scope::TryScope |
|
Scope::DeclScope | Scope::TryScope |
|
||||||
|
|
Loading…
Reference in New Issue