From de699e551062f2b20e66decd4de87ee0804b67cc Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 13 Oct 2009 22:55:59 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaExprCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(BaseExpr)) - Locations.push_back(OpCall->getOperatorLoc()); + Locations.push_back(OpCall->getDirectCallee()->getLocation()); BaseType = BaseExpr->getType(); CanQualType CBaseType = Context.getCanonicalType(BaseType); if (!CTypes.insert(CBaseType)) { -- 2.50.1