Slightly improve source-location information during template instantiation

llvm-svn: 85529
This commit is contained in:
Douglas Gregor 2009-10-29 22:21:39 +00:00
parent f406f4d99b
commit 07cc4ac606
1 changed files with 1 additions and 0 deletions

View File

@ -1752,6 +1752,7 @@ TreeTransform<Derived>::TransformNestedNameSpecifier(NestedNameSpecifier *NNS,
case NestedNameSpecifier::TypeSpecWithTemplate: case NestedNameSpecifier::TypeSpecWithTemplate:
case NestedNameSpecifier::TypeSpec: { case NestedNameSpecifier::TypeSpec: {
TemporaryBase Rebase(*this, Range.getBegin(), DeclarationName());
QualType T = getDerived().TransformType(QualType(NNS->getAsType(), 0)); QualType T = getDerived().TransformType(QualType(NNS->getAsType(), 0));
if (T.isNull()) if (T.isNull())
return 0; return 0;