[cfe-commits] r60380 - /cfe/trunk/lib/Parse/Parser.cpp
Douglas Gregor
doug.gregor at gmail.com
Mon Dec 1 15:03:33 PST 2008
Author: dgregor
Date: Mon Dec 1 17:03:32 2008
New Revision: 60380
URL: http://llvm.org/viewvc/llvm-project?rev=60380&view=rev
Log:
Improve error recovery when parsing a function definition fails
Modified:
cfe/trunk/lib/Parse/Parser.cpp
Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=60380&r1=60379&r2=60380&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Mon Dec 1 17:03:32 2008
@@ -415,7 +415,7 @@
// 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;
More information about the cfe-commits
mailing list