diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-11-09 08:38:04 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-11-09 08:38:04 +0000 |
commit | 9512d3f161860d9a8697458ceaaab18850be8059 (patch) | |
tree | a104ac8c4e8f049fcc4031321404f55a9b4bc691 /clang/lib/Sema/SemaOverload.cpp | |
parent | 1cfef3e9ee687d05b35127112bb58a5f1676407e (diff) | |
download | bcm5719-llvm-9512d3f161860d9a8697458ceaaab18850be8059.tar.gz bcm5719-llvm-9512d3f161860d9a8697458ceaaab18850be8059.zip |
Use isInvalidDecl() instead of isStatic() as suggested by dblaikie.
I couldn't think of a way to make an operator() invalid without returning
earlier from this function other than making it static, so no new test.
llvm-svn: 167609
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 10e7ec42201..e5a3deebc2f 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -10999,7 +10999,7 @@ Sema::BuildCallToObjectOfClassType(Scope *S, Expr *Obj, CXXMethodDecl *Method = cast<CXXMethodDecl>(Best->Function); // An error diagnostic has already been printed when parsing the declaration. - if (Method->isStatic()) + if (Method->isInvalidDecl()) return ExprError(); const FunctionProtoType *Proto = |