r236431 - Get rid of compiler warning.
Serge Pavlov
sepavloff at gmail.com
Mon May 4 10:39:56 PDT 2015
Author: sepavloff
Date: Mon May 4 12:39:55 2015
New Revision: 236431
URL: http://llvm.org/viewvc/llvm-project?rev=236431&view=rev
Log:
Get rid of compiler warning.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=236431&r1=236430&r2=236431&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Mon May 4 12:39:55 2015
@@ -4436,7 +4436,7 @@ NamedDecl *Sema::FindInstantiatedDecl(So
// Tag type may be referenced prior to definition, in this case it must be
// instantiated now.
- if (const TagDecl *TD = dyn_cast<TagDecl>(D)) {
+ if (isa<TagDecl>(D)) {
Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
CurrentInstantiationScope->InstantiatedLocal(D, Inst);
return cast<TypeDecl>(Inst);
More information about the cfe-commits
mailing list