From: John McCall Date: Wed, 21 Oct 2009 00:44:26 +0000 (+0000) Subject: Initialize using the base location provided by the derived implementation, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4802a311f402836f1f226a3d7a87e6a3088f9704;p=clang Initialize using the base location provided by the derived implementation, 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 --- diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index ee028b4127..53aef9fdef 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -1963,7 +1963,7 @@ QualType TreeTransform::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);