For C++ overloaded operator calls, set the source location of the DeclRefExpr to the location of the operator.

llvm-svn: 75600
This commit is contained in:
Argyrios Kyrtzidis 2009-07-14 03:19:38 +00:00
parent e6cd787ee1
commit ef1c1e572c
1 changed files with 1 additions and 1 deletions

View File

@ -4209,7 +4209,7 @@ Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
// Build the actual expression node.
Expr *FnExpr = new (Context) DeclRefExpr(FnDecl, FnDecl->getType(),
SourceLocation());
OpLoc);
UsualUnaryConversions(FnExpr);
return Owned(new (Context) CXXOperatorCallExpr(Context, Op, FnExpr,