Fix unused variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 22 Sep 2017 16:26:17 +0000 (16:26 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 22 Sep 2017 16:26:17 +0000 (16:26 +0000)
llvm-svn: 313991

clang/lib/AST/ItaniumMangle.cpp

index ef54ad5..5ce5217 100644 (file)
@@ -1698,8 +1698,7 @@ void CXXNameMangler::mangleLambda(const CXXRecordDecl *Lambda) {
             = cast<NamedDecl>(Context)->getIdentifier()) {
         mangleSourceName(Name);
         const TemplateArgumentList *TemplateArgs = nullptr;
-        if (const TemplateDecl *TD =
-                isTemplate(cast<NamedDecl>(Context), TemplateArgs))
+        if (isTemplate(cast<NamedDecl>(Context), TemplateArgs))
           mangleTemplateArgs(*TemplateArgs);
         Out << 'M';
       }