diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2012-11-16 08:40:59 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2012-11-16 08:40:59 +0000 |
| commit | cc8990f6294f065d3006614337f3e9e9b9fc464d (patch) | |
| tree | db2eeade58df4682d0223624ff9097983db89cda /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
| parent | a1694c1aaff37ac5c12fe0be9ff37336a0925e54 (diff) | |
| download | bcm5719-llvm-cc8990f6294f065d3006614337f3e9e9b9fc464d.tar.gz bcm5719-llvm-cc8990f6294f065d3006614337f3e9e9b9fc464d.zip | |
Store this Decl* as a Decl* instead of a uintptr_t. No functionality change.
llvm-svn: 168145
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 0267192d5ee..46464a1e68d 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -2605,12 +2605,12 @@ TemplateDeclInstantiator::InitFunctionInstantiation(FunctionDecl *New, if (ActiveInst.Kind == ActiveInstType::ExplicitTemplateArgumentSubstitution || ActiveInst.Kind == ActiveInstType::DeducedTemplateArgumentSubstitution) { if (FunctionTemplateDecl *FunTmpl - = dyn_cast<FunctionTemplateDecl>((Decl *)ActiveInst.Entity)) { + = dyn_cast<FunctionTemplateDecl>(ActiveInst.Entity)) { assert(FunTmpl->getTemplatedDecl() == Tmpl && "Deduction from the wrong function template?"); (void) FunTmpl; ActiveInst.Kind = ActiveInstType::TemplateInstantiation; - ActiveInst.Entity = reinterpret_cast<uintptr_t>(New); + ActiveInst.Entity = New; } } |

