diff options
author | Steve Naroff <snaroff@apple.com> | 2008-11-19 15:54:23 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-11-19 15:54:23 +0000 |
commit | 5cb93b8bf009c4b0ae09b71ba85f54b2a7ea8022 (patch) | |
tree | 94dac43df0a39c26d55980ad047066292ea716f8 /lib/Parse/ParseExpr.cpp | |
parent | 74253736184c0717a0649922551bf9d8b6815651 (diff) |
Fix <rdar://problem/6150376> [sema] crash on invalid message send.
The core fix in Sema::ActOnClassMessage(). All the other changes have to do with passing down the SourceLocation for the receiver (to properly position the cursor when producing an error diagnostic).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 440393dac6..5f36f0bb27 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -212,9 +212,10 @@ Parser::ExprResult Parser::ParseAssignmentExpression() { /// expressions and other binary operators for these expressions as well. Parser::ExprResult Parser::ParseAssignmentExprWithObjCMessageExprStart(SourceLocation LBracLoc, + SourceLocation NameLoc, IdentifierInfo *ReceiverName, ExprTy *ReceiverExpr) { - ExprResult R = ParseObjCMessageExpressionBody(LBracLoc, ReceiverName, + ExprResult R = ParseObjCMessageExpressionBody(LBracLoc, NameLoc, ReceiverName, ReceiverExpr); if (R.isInvalid) return R; R = ParsePostfixExpressionSuffix(R); |