diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-25 19:13:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-25 19:13:18 +0000 |
commit | c21c7e9c2cded68f91be15be6847c9649242dc17 (patch) | |
tree | 4cf47abb0058f7ada5262a133ee3aa859ab6df4a /lib/Sema/TreeTransform.h | |
parent | 0691a5c83246604a89654e0dfc25870e742035b4 (diff) |
Teach TemplateSpecializationTypeLoc::initializeArgLocs() to actually
generate meaningful [*] template argument location information.
[*] Well, as meaningful as possible, given that this entire code path
is a hack for when we've lost type-source information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/TreeTransform.h')
-rw-r--r-- | lib/Sema/TreeTransform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index 654bf90e87..04c45b8da7 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -2980,8 +2980,8 @@ QualType TreeTransform<Derived>::TransformType(QualType T) { // Temporary workaround. All of these transformations should // eventually turn into transformations on TypeLocs. - TypeSourceInfo *DI = getSema().Context.CreateTypeSourceInfo(T); - DI->getTypeLoc().initialize(getDerived().getBaseLocation()); + TypeSourceInfo *DI = getSema().Context.getTrivialTypeSourceInfo(T, + getDerived().getBaseLocation()); TypeSourceInfo *NewDI = getDerived().TransformType(DI); @@ -3073,7 +3073,7 @@ TreeTransform<Derived>::TransformTypeInObjectScope(QualType T, return T; TypeSourceInfo *TSI = - SemaRef.Context.getTrivialTypeSourceInfo(T, getBaseLocation()); + SemaRef.Context.getTrivialTypeSourceInfo(T, getDerived().getBaseLocation()); TSI = getDerived().TransformTypeInObjectScope(TSI, ObjectType, UnqualLookup, Prefix); |