The operator loc points to the operator, not the function decl.

llvm-svn: 84048
This commit is contained in:
Anders Carlsson 2009-10-13 22:55:59 +00:00
parent 80816acf9b
commit fbd2d49398
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {