[cfe-commits] r84721 - /cfe/trunk/lib/Sema/TreeTransform.h

John McCall rjmccall at apple.com
Tue Oct 20 17:44:26 PDT 2009


Author: rjmccall
Date: Tue Oct 20 19:44:26 2009
New Revision: 84721

URL: http://llvm.org/viewvc/llvm-project?rev=84721&view=rev
Log:
Initialize using the base location provided by the derived implementation,
not the default one (which is always empty).


Modified:
    cfe/trunk/lib/Sema/TreeTransform.h

Modified: cfe/trunk/lib/Sema/TreeTransform.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=84721&r1=84720&r2=84721&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/TreeTransform.h (original)
+++ cfe/trunk/lib/Sema/TreeTransform.h Tue Oct 20 19:44:26 2009
@@ -1963,7 +1963,7 @@
   // 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);
 





More information about the cfe-commits mailing list