diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-14 03:19:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-14 03:19:38 +0000 |
commit | 812730911edee505015a1ee3b0bf48be7e838532 (patch) | |
tree | 406ef6171c8a99eba982d1e615fcf8601143916d /lib/Sema/SemaOverload.cpp | |
parent | be125444cf48d0fbc80c2f438a6842ae74424f16 (diff) |
For C++ overloaded operator calls, set the source location of the DeclRefExpr to the location of the operator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 4021e547e1..b7f698eb0b 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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, |