]> granicus.if.org Git - clang/commitdiff
Sema: Remove unused variable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 17 Apr 2013 18:05:23 +0000 (18:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 17 Apr 2013 18:05:23 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179701 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index d2051b52e83efc5ce1715a0131c8cac49fe8c07d..fd3489fd537be199a5a467a13b1769493026da5a 100644 (file)
@@ -633,10 +633,6 @@ void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) {
   unsigned NumParams = FD->getNumParams();
   unsigned p;
 
-  bool IsLambda = FD->getOverloadedOperator() == OO_Call &&
-                  isa<CXXMethodDecl>(FD) &&
-                  cast<CXXMethodDecl>(FD)->getParent()->isLambda();
-
   // Find first parameter with a default argument
   for (p = 0; p < NumParams; ++p) {
     ParmVarDecl *Param = FD->getParamDecl(p);