Get rid of compiler warning.
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 4 May 2015 17:39:55 +0000 (17:39 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 4 May 2015 17:39:55 +0000 (17:39 +0000)
llvm-svn: 236431

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

index 41245d9..a0e8c23 100644 (file)
@@ -4436,7 +4436,7 @@ NamedDecl *Sema::FindInstantiatedDecl(SourceLocation Loc, NamedDecl *D,
 
     // 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);