[cfe-commits] r46574 - /cfe/trunk/Parse/ParseObjc.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 30 13:20:25 PST 2008
Author: lattner
Date: Wed Jan 30 15:20:25 2008
New Revision: 46574
URL: http://llvm.org/viewvc/llvm-project?rev=46574&view=rev
Log:
On an unexpected @foo keyword, return failure instead of a 'successful' null AST. This fixes a segfault
on things like @foo.
Modified:
cfe/trunk/Parse/ParseObjc.cpp
Modified: cfe/trunk/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/ParseObjc.cpp?rev=46574&r1=46573&r2=46574&view=diff
==============================================================================
--- cfe/trunk/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/Parse/ParseObjc.cpp Wed Jan 30 15:20:25 2008
@@ -1279,10 +1279,8 @@
default:
Diag(AtLoc, diag::err_unexpected_at);
SkipUntil(tok::semi);
- break;
+ return true;
}
-
- return 0;
}
/// objc-message-expr:
More information about the cfe-commits
mailing list