aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-21 00:44:26 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-21 00:44:26 +0000
commit4802a311f402836f1f226a3d7a87e6a3088f9704 (patch)
tree57fbbbea413710fc122e9ca3759b1c9cf778cf5e
parent04c688a3b7f075d836f3b0f4c7d9a10200b8c968 (diff)
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
-rw-r--r--lib/Sema/TreeTransform.h2
1 files changed, 1 insertions, 1 deletions
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<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);