projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6f07d
)
Get rid of compiler warning.
author
Serge Pavlov
<sepavloff@gmail.com>
Mon, 4 May 2015 17:39:55 +0000
(17:39 +0000)
committer
Serge Pavlov
<sepavloff@gmail.com>
Mon, 4 May 2015 17:39:55 +0000
(17:39 +0000)
llvm-svn: 236431
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index
41245d9
..
a0e8c23
100644
(file)
--- a/
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/
clang/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
<TagDecl>(D)) {
+ if (
isa
<TagDecl>(D)) {
Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
CurrentInstantiationScope->InstantiatedLocal(D, Inst);
return cast<TypeDecl>(Inst);