summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-08 16:40:19 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-08 16:40:19 +0000
commitde4827dd340b77640b4cead98502148d8a5bcf70 (patch)
tree348c444a659bbb7e245e5fe8c2cbdd6daecc1485 /clang/lib/Sema/SemaExprObjC.cpp
parent12852d9521243840968d38e9e4ee704f3713c3dd (diff)
downloadbcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.tar.gz
bcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.zip
Extend ObjCMessageExpr for class method sends with the source location
of the class name. llvm-svn: 97943
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index 3a05241c016..c60455d8456 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -470,13 +470,13 @@ Sema::ExprResult Sema::ActOnClassMessage(
// now, we simply pass the "super" identifier through (which isn't consistent
// with instance methods.
if (isSuper)
- return new (Context) ObjCMessageExpr(Context, receiverName, Sel, returnType,
- Method, lbrac, rbrac, ArgExprs,
- NumArgs);
+ return new (Context) ObjCMessageExpr(Context, receiverName, receiverLoc,
+ Sel, returnType, Method, lbrac, rbrac,
+ ArgExprs, NumArgs);
else
- return new (Context) ObjCMessageExpr(Context, ClassDecl, Sel, returnType,
- Method, lbrac, rbrac, ArgExprs,
- NumArgs);
+ return new (Context) ObjCMessageExpr(Context, ClassDecl, receiverLoc,
+ Sel, returnType, Method, lbrac, rbrac,
+ ArgExprs, NumArgs);
}
// ActOnInstanceMessage - used for both unary and keyword messages.
OpenPOWER on IntegriCloud