r313991 - Fix unused variable warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 22 09:26:17 PDT 2017
Author: rksimon
Date: Fri Sep 22 09:26:17 2017
New Revision: 313991
URL: http://llvm.org/viewvc/llvm-project?rev=313991&view=rev
Log:
Fix unused variable warning. NFCI.
Modified:
cfe/trunk/lib/AST/ItaniumMangle.cpp
Modified: cfe/trunk/lib/AST/ItaniumMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ItaniumMangle.cpp?rev=313991&r1=313990&r2=313991&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ItaniumMangle.cpp (original)
+++ cfe/trunk/lib/AST/ItaniumMangle.cpp Fri Sep 22 09:26:17 2017
@@ -1698,8 +1698,7 @@ void CXXNameMangler::mangleLambda(const
= 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';
}
More information about the cfe-commits
mailing list