]> granicus.if.org Git - clang/commitdiff
Eliminate an unnecessary use of CXXScopeSpec::MakeTrivial. We have proper nested...
authorDouglas Gregor <dgregor@apple.com>
Wed, 2 Mar 2011 18:52:42 +0000 (18:52 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 2 Mar 2011 18:52:42 +0000 (18:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126854 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/TreeTransform.h

index 21b7c001df68c1a84fed432fe2e22152af9effb5..a8468058b24a1de225bd056a04b690f7a2f60223 100644 (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());