From: Eli Friedman Date: Thu, 11 Oct 2012 00:34:15 +0000 (+0000) Subject: Minor cleanup for r165678; no functional change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df75b0c74b277c6b46af2f9e90e13160fbc14d6f;p=clang Minor cleanup for r165678; no functional change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165679 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 63c7bdd0cb..480088619c 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -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(TheCall) && isa(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.