On an unexpected @foo keyword, return failure instead of a 'successful' null AST. This fixes a segfault

on things like @foo.

llvm-svn: 46574
This commit is contained in:
Chris Lattner 2008-01-30 21:20:25 +00:00
parent 936b207407
commit 8f39876ac3
1 changed files with 1 additions and 3 deletions

View File

@ -1279,10 +1279,8 @@ Parser::ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
default:
Diag(AtLoc, diag::err_unexpected_at);
SkipUntil(tok::semi);
break;
return true;
}
return 0;
}
/// objc-message-expr: