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 | 9e4ac111f04b581b9d85d51c2f7f68af86d6d4ba (patch) | |
| tree | a2d8836e4c66cab11715b9c397c2d346e6144ae6 /clang/lib/Sema/Sema.h | |
| parent | d08452f60a2731c279f3b845d84a4a8940844d99 (diff) | |
| download | bcm5719-llvm-9e4ac111f04b581b9d85d51c2f7f68af86d6d4ba.tar.gz bcm5719-llvm-9e4ac111f04b581b9d85d51c2f7f68af86d6d4ba.zip | |
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).
llvm-svn: 59639
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index c60fd352f9d..b10a98f0b3c 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1050,7 +1050,7 @@ public: virtual ExprResult ActOnClassMessage( Scope *S, IdentifierInfo *receivingClassName, Selector Sel, - SourceLocation lbrac, SourceLocation rbrac, + SourceLocation lbrac, SourceLocation receiverLoc, SourceLocation rbrac, ExprTy **ArgExprs, unsigned NumArgs); // ActOnInstanceMessage - used for both unary and keyword messages. |

