diff options
author | Steve Naroff <snaroff@apple.com> | 2007-10-15 20:55:58 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-10-15 20:55:58 +0000 |
commit | a642beb9f143130588dcf622f5f7020832b22707 (patch) | |
tree | 917abdbd8a32f7c7b3a5313d638ea2e622fd590e /Parse/ParseObjc.cpp | |
parent | ec0550fa3653d46560bf4484a2e988329c228e39 (diff) |
Fix a parser bug with message expressions - need to call ParsePostfixExpressionSuffix().
Now were correctly allow the following...
i = [str rangeOfString:@"]"].length;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseObjc.cpp')
-rw-r--r-- | Parse/ParseObjc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp index 4236314fdf..85559019e0 100644 --- a/Parse/ParseObjc.cpp +++ b/Parse/ParseObjc.cpp @@ -1114,7 +1114,7 @@ void Parser::ParseObjCClassMethodDefinition() { StmtResult FnBody = ParseCompoundStatementBody(); } -Parser::ExprResult Parser::ParseObjCExpression(SourceLocation AtLoc) { +Parser::ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { switch (Tok.getKind()) { case tok::string_literal: // primary-expression: string-literal |