Recurse on a TypeLoc rather than a Type for TypedefDecl, now that the

typloc information is available (I don't think it was, originally).
Submitted as a 'trivial' change.

llvm-svn: 116568
This commit is contained in:
Craig Silverstein 2010-10-15 06:51:01 +00:00
parent 1c9c3fd50a
commit 12a198e5b1
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ DEF_TRAVERSE_DECL(TemplateTypeParmDecl, {
}) })
DEF_TRAVERSE_DECL(TypedefDecl, { DEF_TRAVERSE_DECL(TypedefDecl, {
TRY_TO(TraverseType(D->getUnderlyingType())); TRY_TO(TraverseTypeLoc(D->getTypeSourceInfo()->getTypeLoc()));
// We shouldn't traverse D->getTypeForDecl(); it's a result of // We shouldn't traverse D->getTypeForDecl(); it's a result of
// declaring the typedef, not something that was written in the // declaring the typedef, not something that was written in the
// source. // source.