From: Serge Pavlov Date: Mon, 4 May 2015 17:39:55 +0000 (+0000) Subject: Get rid of compiler warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=717ef180f73198cc71fb15236a1f1666da9edbc6;p=clang Get rid of compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236431 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 41245d9b3f..a0e8c2373d 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -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(D)) { + if (isa(D)) { Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); CurrentInstantiationScope->InstantiatedLocal(D, Inst); return cast(Inst);