]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313991 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ItaniumMangle.cpp

index ef54ad5ec852c370b9c2fd440231e14f02971bbf..5ce521715621fa037ae154b0b135fb2f9e5b55a1 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';
       }