diff options
author | Faisal Vali <faisalv@yahoo.com> | 2013-09-29 20:15:45 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2013-09-29 20:15:45 +0000 |
commit | 998c518eb1c3e4fd881a559c170cd408049721aa (patch) | |
tree | 8cd659f6b9b36199055dc8d182dce41306f3070f /include/clang/AST/ASTLambda.h | |
parent | 99229cd81825a9c1df20ed8971d10608e5793521 (diff) | |
download | clang-998c518eb1c3e4fd881a559c170cd408049721aa.tar.gz clang-998c518eb1c3e4fd881a559c170cd408049721aa.tar.bz2 clang-998c518eb1c3e4fd881a559c170cd408049721aa.tar.xz |
Remove an unnecessary overload from ASTLambda.h
As Richard pointed out to me, dyn_cast is very cheap - there is no real benefit from adding cluttery overloads to only avoid that cast.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/ASTLambda.h')
-rw-r--r-- | include/clang/AST/ASTLambda.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/clang/AST/ASTLambda.h b/include/clang/AST/ASTLambda.h index 9044878e35..ec0a3ce830 100644 --- a/include/clang/AST/ASTLambda.h +++ b/include/clang/AST/ASTLambda.h @@ -45,12 +45,6 @@ inline bool isGenericLambdaCallOperatorSpecialization(CXXMethodDecl *MD) { return false; } -inline bool isGenericLambdaCallOperatorSpecialization(Decl *D) { - if (!D || !isa<CXXMethodDecl>(D)) return false; - return isGenericLambdaCallOperatorSpecialization( - cast<CXXMethodDecl>(D)); -} - inline bool isLambdaConversionOperator(CXXConversionDecl *C) { return C ? C->getParent()->isLambda() : false; } |