summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Parse/Parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index e72b42471b..5d6c6930e7 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -691,6 +691,7 @@ Parser::StmtResult Parser::ParseENDStmt(tok::TokenKind EndKw) {
<< Expected;
Diag.Report(cast<NamedDecl>(Actions.CurContext)->getLocation(), diag::note_matching)
<< Given;
+ if(Tok.isAtStartOfStatement()) ConsumeToken();
SkipUntilNextStatement();
return StmtError();
}