summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-13 22:55:59 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-13 22:55:59 +0000
commitfbd2d493980877a4aeb615d6ff5a155026328ec9 (patch)
tree5faf3db1be73a258c0c3e02f18b4ee5d1040c28e /clang
parent80816acf9b867c0f54477a95d6861372860ab83c (diff)
downloadbcm5719-llvm-fbd2d493980877a4aeb615d6ff5a155026328ec9.tar.gz
bcm5719-llvm-fbd2d493980877a4aeb615d6ff5a155026328ec9.zip
The operator loc points to the operator, not the function decl.
llvm-svn: 84048
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 8a67d479543..5f111c8a60e 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -1998,7 +1998,7 @@ Sema::ActOnStartCXXMemberReference(Scope *S, ExprArg Base, SourceLocation OpLoc,
if (BaseExpr == NULL)
return ExprError();
if (CXXOperatorCallExpr *OpCall = dyn_cast<CXXOperatorCallExpr>(BaseExpr))
- Locations.push_back(OpCall->getOperatorLoc());
+ Locations.push_back(OpCall->getDirectCallee()->getLocation());
BaseType = BaseExpr->getType();
CanQualType CBaseType = Context.getCanonicalType(BaseType);
if (!CTypes.insert(CBaseType)) {
OpenPOWER on IntegriCloud