]> granicus.if.org Git - clang/commitdiff
Removed unused local variable
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 19 Feb 2016 12:06:23 +0000 (12:06 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Fri, 19 Feb 2016 12:06:23 +0000 (12:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261323 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplate.cpp

index 6f7e3d85bd7c122c9ab69d35f1d7865250ae4863..38df76ee3153ae983bf739bb92e73d72ca574afd 100644 (file)
@@ -555,7 +555,6 @@ Decl *Sema::ActOnTypeParameter(Scope *S, bool Typename,
                                ParsedType DefaultArg) {
   assert(S->isTemplateParamScope() &&
          "Template type parameter not in template parameter scope!");
-  bool Invalid = false;
 
   SourceLocation Loc = ParamNameLoc;
   if (!ParamName)
@@ -567,8 +566,6 @@ Decl *Sema::ActOnTypeParameter(Scope *S, bool Typename,
                                    KeyLoc, Loc, Depth, Position, ParamName,
                                    Typename, IsParameterPack);
   Param->setAccess(AS_public);
-  if (Invalid)
-    Param->setInvalidDecl();
 
   if (ParamName) {
     maybeDiagnoseTemplateParameterShadow(*this, S, ParamNameLoc, ParamName);