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 | 4a9e60fc7c36e323ae376601cc704fed4beb68ae (patch) | |
tree | f725aa14d86660303e931f3a7045d08089e8e015 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 3a4c8cf5c0669f48a66da2df30c7963dce8348ff (diff) |
Store this Decl* as a Decl* instead of a uintptr_t. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 0267192d5e..46464a1e68 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/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; } } |