Initialize using the base location provided by the derived implementation,

not the default one (which is always empty).

llvm-svn: 84721
This commit is contained in:
John McCall 2009-10-21 00:44:26 +00:00
parent 08fa03c740
commit de88989e5d
1 changed files with 1 additions and 1 deletions

View 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);