forked from OSchip/llvm-project
The operator loc points to the operator, not the function decl.
llvm-svn: 84048
This commit is contained in:
parent
80816acf9b
commit
fbd2d49398
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue