]> granicus.if.org Git - clang/commitdiff
Minor cleanup for r165678; no functional change.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 11 Oct 2012 00:34:15 +0000 (00:34 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 11 Oct 2012 00:34:15 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165679 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp

index 63c7bdd0cb301715a4acfacd0a4f8270075ae246..480088619cf1b3a9a412cd49ee572bc00dc46060 100644 (file)
@@ -551,7 +551,7 @@ bool Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
   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.