Author: andersca
Date: Tue Oct 13 17:55:59 2009
New Revision: 84048

URL: http://llvm.org/viewvc/llvm-project?rev=84048&view=rev
Log:
The operator loc points to the operator, not the function decl.

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

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

==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Tue Oct 13 17:55:59 2009
@@ -1998,7 +1998,7 @@
       if (BaseExpr == NULL)
         return ExprError();
       if (CXXOperatorCallExpr *OpCall = 
dyn_cast<CXXOperatorCallExpr>(BaseExpr))
-        Locations.push_back(OpCall->getOperatorLoc());
+        Locations.push_back(OpCall->getDirectCallee()->getLocation());
       BaseType = BaseExpr->getType();
       CanQualType CBaseType = Context.getCanonicalType(BaseType);
       if (!CTypes.insert(CBaseType)) {


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to