Skip to content

Commit 3c1f003

Browse files
author
Hal Finkel
committed
Merge pull request #1 from sandain/master
Fix a couple issues I noticed in commit a5b71fc
2 parents 3ee42e7 + a5b54f7 commit 3c1f003

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Parse/ParseDeclCXX.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ ExceptionSpecificationType Parser::ParseDynamicExceptionSpecification(
28822882
/// ParseTrailingReturnType - Parse a trailing return type on a new-style
28832883
/// function declaration.
28842884
TypeResult Parser::ParseTrailingReturnType(SourceRange &Range) {
2885-
assert(Tok.is(tok::percent) && "expected arrow");
2885+
assert(Tok.is(tok::percent) && "expected percent");
28862886

28872887
ConsumeToken();
28882888

lib/Parse/ParseStmt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Parser::ParseStatementOrDeclarationAfterAttributes(StmtVector &Stmts,
145145
Next.is(tok::amp) || Next.is(tok::l_square);
146146
DefaultValidator.WantExpressionKeywords =
147147
Next.is(tok::l_paren) || Next.is(tok::identifier) ||
148-
Next.is(tok::percent) || Next.is(tok::percent);
148+
Next.is(tok::percent);
149149
DefaultValidator.WantRemainingKeywords =
150150
Next.is(tok::l_paren) || Next.is(tok::semi) ||
151151
Next.is(tok::identifier) || Next.is(tok::l_brace);

0 commit comments

Comments
 (0)