forked from OSchip/llvm-project
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:
parent
e6cd787ee1
commit
ef1c1e572c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue