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

lib/Sema/SemaTemplateInstantiateDecl.cpp

index 41245d9b3fd399fe6a7401449a01a69da9f213df..a0e8c2373da8f0b38398e4d04c4f36b3005a36d0 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);