summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-10-11 00:34:15 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-10-11 00:34:15 +0000
commitadf42185f6cdf26877921b6eacb9d545f6be8dad (patch)
treebbb1da1f166d175fdb2c2c47a949cdba6b897722 /clang/lib/Sema/SemaChecking.cpp
parent726d11c41b99e7e2b54547dfade6d327adaac79f (diff)
downloadbcm5719-llvm-adf42185f6cdf26877921b6eacb9d545f6be8dad.tar.gz
bcm5719-llvm-adf42185f6cdf26877921b6eacb9d545f6be8dad.zip
Minor cleanup for r165678; no functional change.
llvm-svn: 165679
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 63c7bdd0cb3..480088619cf 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/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<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.
OpenPOWER on IntegriCloud