[cfe-commits] r75600 - /cfe/trunk/lib/Sema/SemaOverload.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Mon Jul 13 20:19:38 PDT 2009


Author: akirtzidis
Date: Mon Jul 13 22:19:38 2009
New Revision: 75600

URL: http://llvm.org/viewvc/llvm-project?rev=75600&view=rev
Log:
For C++ overloaded operator calls, set the source location of the DeclRefExpr to the location of the operator.

Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=75600&r1=75599&r2=75600&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Mon Jul 13 22:19:38 2009
@@ -4209,7 +4209,7 @@
 
         // 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, 





More information about the cfe-commits mailing list