]> granicus.if.org Git - clang/commitdiff
Initialize using the base location provided by the derived implementation,
authorJohn McCall <rjmccall@apple.com>
Wed, 21 Oct 2009 00:44:26 +0000 (00:44 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 21 Oct 2009 00:44:26 +0000 (00:44 +0000)
not the default one (which is always empty).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/TreeTransform.h

index ee028b4127dad5e0ad1454c8d6b3c16a6294866f..53aef9fdef5921de93b0518046e6f2b356f8b110 100644 (file)
@@ -1963,7 +1963,7 @@ QualType TreeTransform<Derived>::TransformType(QualType T) {
   // Temporary workaround.  All of these transformations should
   // eventually turn into transformations on TypeLocs.
   DeclaratorInfo *DI = getSema().Context.CreateDeclaratorInfo(T);
-  DI->getTypeLoc().initialize(getBaseLocation());
+  DI->getTypeLoc().initialize(getDerived().getBaseLocation());
   
   DeclaratorInfo *NewDI = getDerived().TransformType(DI);