forked from OSchip/llvm-project
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:
parent
08fa03c740
commit
de88989e5d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue