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:
parent
1c9c3fd50a
commit
12a198e5b1
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue