]> granicus.if.org Git - clang/commitdiff
For C++ overloaded operator calls, set the source location of the DeclRefExpr to...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 14 Jul 2009 03:19:38 +0000 (03:19 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 14 Jul 2009 03:19:38 +0000 (03:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75600 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 4021e547e1a40ddb1884329809c6519c8fb35eda..b7f698eb0b5ea061d433892e514c424441e78673 100644 (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,