diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-13 22:55:59 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-13 22:55:59 +0000 |
commit | de699e551062f2b20e66decd4de87ee0804b67cc (patch) | |
tree | e1306c52a36cbeda1f86a0b008ebe6de16ccc415 /lib/Sema/SemaExprCXX.cpp | |
parent | 6240cf190a660507777558660994cc566839c1a1 (diff) |
The operator loc points to the operator, not the function decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 8a67d47954..5f111c8a60 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/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)) { |