aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-01 23:03:32 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-01 23:03:32 +0000
commitcb43d999520f547d682a1ca280ecfedb115ee1fd (patch)
treed794fe933a7c6d29de251abc4d4051e70f98225d /lib/Parse/Parser.cpp
parente89b02823a3ab1a5a282922ac9b014e226dca2ab (diff)
Improve error recovery when parsing a function definition fails
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r--lib/Parse/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index 42d95e7f02..999349cfbe 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -415,7 +415,7 @@ Parser::DeclTy *Parser::ParseDeclarationOrFunctionDefinition() {
// Error parsing the declarator?
if (!DeclaratorInfo.hasName()) {
// If so, skip until the semi-colon or a }.
- SkipUntil(tok::r_brace, true);
+ SkipUntil(tok::r_brace, true, true);
if (Tok.is(tok::semi))
ConsumeToken();
return 0;