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:
parent
936b207407
commit
8f39876ac3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue