Teach tentative parsing to handle block pointers (rdar://6394309)

llvm-svn: 59853
This commit is contained in:
Chris Lattner 2008-11-22 01:15:33 +00:00
parent afd8aa9d73
commit 399f9656ba
1 changed files with 2 additions and 1 deletions

View File

@ -399,7 +399,8 @@ Parser::TPResult Parser::TryParseDeclarator(bool mayBeAbstract,
// ptr-operator declarator
while (1) {
if (Tok.is(tok::star) || Tok.is(tok::amp)) {
if (Tok.is(tok::star) || Tok.is(tok::amp) ||
(Tok.is(tok::caret) && getLang().Blocks)) {
// ptr-operator
ConsumeToken();
while (Tok.is(tok::kw_const) ||