Eliminate an unnecessary use of CXXScopeSpec::MakeTrivial. We have proper nested-name-specifier source-location information in DependentTemplateSpecializationTypeLocs now

llvm-svn: 126854
This commit is contained in:
Douglas Gregor 2011-03-02 18:52:42 +00:00
parent fd35cde35e
commit d4c41bcd7f
1 changed files with 1 additions and 3 deletions

View File

@ -4318,10 +4318,8 @@ QualType TreeTransform<Derived>::TransformDependentTemplateSpecializationType(
= TLB.push<DependentTemplateSpecializationTypeLoc>(Result);
NewTL.setKeywordLoc(TL.getKeywordLoc());
// FIXME: Poor nested-name-specifier source-location information.
CXXScopeSpec SS;
SS.MakeTrivial(SemaRef.Context,
DTN->getQualifier(), TL.getQualifierLoc().getSourceRange());
SS.Adopt(TL.getQualifierLoc());
NewTL.setQualifierLoc(SS.getWithLocInContext(SemaRef.Context));
NewTL.setNameLoc(TL.getNameLoc());
NewTL.setLAngleLoc(TL.getLAngleLoc());