From: Douglas Gregor Date: Wed, 2 Mar 2011 18:52:42 +0000 (+0000) Subject: Eliminate an unnecessary use of CXXScopeSpec::MakeTrivial. We have proper nested... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21e2e60fc02b5172e3da38f887b9f611d59afcd6;p=clang Eliminate an unnecessary use of CXXScopeSpec::MakeTrivial. We have proper nested-name-specifier source-location information in DependentTemplateSpecializationTypeLocs now git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126854 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index 21b7c001df..a8468058b2 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -4318,10 +4318,8 @@ QualType TreeTransform::TransformDependentTemplateSpecializationType( = TLB.push(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());