diff options
author | John McCall <rjmccall@apple.com> | 2010-06-13 09:25:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-06-13 09:25:03 +0000 |
commit | 71d74bc0d6e522ce7c21a599db8e19d3883b518f (patch) | |
tree | 978c8f08117b5aca9275131bebf154738a418211 /lib/AST/Type.cpp | |
parent | e6563256a4b3b9fee70ce3335d28406607c1faaf (diff) |
TemplateSpecializationType's isCurrentInstantiation bit can be derived
from its canonical type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 7a699b0015..1d91e76c8f 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1131,13 +1131,11 @@ anyDependentTemplateArguments(const TemplateArgument *Args, unsigned N) { TemplateSpecializationType:: TemplateSpecializationType(TemplateName T, - bool IsCurrentInstantiation, const TemplateArgument *Args, unsigned NumArgs, QualType Canon) : Type(TemplateSpecialization, Canon.isNull()? QualType(this, 0) : Canon, T.isDependent() || anyDependentTemplateArguments(Args, NumArgs)), - IsCurrentInstantiation(IsCurrentInstantiation), Template(T), NumArgs(NumArgs) { assert((!Canon.isNull() || T.isDependent() || anyDependentTemplateArguments(Args, NumArgs)) && @@ -1161,11 +1159,9 @@ void TemplateSpecializationType::Destroy(ASTContext& C) { void TemplateSpecializationType::Profile(llvm::FoldingSetNodeID &ID, TemplateName T, - bool IsCurrentInstantiation, const TemplateArgument *Args, unsigned NumArgs, ASTContext &Context) { - ID.AddBoolean(IsCurrentInstantiation); T.Profile(ID); for (unsigned Idx = 0; Idx < NumArgs; ++Idx) Args[Idx].Profile(ID, Context); |