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 | 30576cdce34180aa64c8e5caf8b39fe8dfd96de2 (patch) | |
| tree | 788cf2b9b88268f23ffa475041f78ee6b43dfa8a /clang/lib/Sema | |
| parent | f3d3b36870554b7bf8abf5b6e64dff0761c7672c (diff) | |
| download | bcm5719-llvm-30576cdce34180aa64c8e5caf8b39fe8dfd96de2.tar.gz bcm5719-llvm-30576cdce34180aa64c8e5caf8b39fe8dfd96de2.zip | |
TemplateSpecializationType's isCurrentInstantiation bit can be derived
from its canonical type.
llvm-svn: 105912
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 6be74a08978..0c75cda57e6 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -1448,7 +1448,6 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,           "Converted template argument list is too short!");    QualType CanonType; -  bool IsCurrentInstantiation = false;    if (Name.isDependent() ||        TemplateSpecializationType::anyDependentTemplateArguments( @@ -1505,7 +1504,6 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,          // class name type of the record we just found.          assert(ICNT.isCanonical());          CanonType = ICNT; -        IsCurrentInstantiation = true;          break;        }      } @@ -1543,8 +1541,7 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,    // Build the fully-sugared type for this class template    // specialization, which refers back to the class template    // specialization we created or found. -  return Context.getTemplateSpecializationType(Name, TemplateArgs, CanonType, -                                               IsCurrentInstantiation); +  return Context.getTemplateSpecializationType(Name, TemplateArgs, CanonType);  }  Action::TypeResult | 

