[cfe-commits] r165679 - /cfe/trunk/lib/Sema/SemaChecking.cpp

Eli Friedman eli.friedman at gmail.com
Wed Oct 10 17:34:16 PDT 2012


Author: efriedma
Date: Wed Oct 10 19:34:15 2012
New Revision: 165679

URL: http://llvm.org/viewvc/llvm-project?rev=165679&view=rev
Log:
Minor cleanup for r165678; no functional change.


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

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=165679&r1=165678&r2=165679&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Wed Oct 10 19:34:15 2012
@@ -551,7 +551,7 @@
   unsigned NumProtoArgs = Proto ? Proto->getNumArgs() : 0;
   Expr** Args = TheCall->getArgs();
   unsigned NumArgs = TheCall->getNumArgs();
-  if (isa<CXXOperatorCallExpr>(TheCall) && isa<CXXMethodDecl>(FDecl)) {
+  if (IsMemberOperatorCall) {
     // If this is a call to a member operator, hide the first argument
     // from checkCall.
     // FIXME: Our choice of AST representation here is less than ideal.





More information about the cfe-commits mailing list