summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers2000@yahoo.com>2010-10-15 06:51:01 +0000
committerCraig Silverstein <csilvers2000@yahoo.com>2010-10-15 06:51:01 +0000
commit12a198e5b116a3682560b0a3d35b00ff66ab77cc (patch)
tree0374738c290c014468afa33ffd3d53d3a103ddc9
parent1c9c3fd50a05147d9e14d12bb42910eda831a373 (diff)
downloadbcm5719-llvm-12a198e5b116a3682560b0a3d35b00ff66ab77cc.tar.gz
bcm5719-llvm-12a198e5b116a3682560b0a3d35b00ff66ab77cc.zip
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
-rw-r--r--clang/include/clang/AST/RecursiveASTVisitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index cb617f14e00..101a850f612 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -1251,7 +1251,7 @@ DEF_TRAVERSE_DECL(TemplateTypeParmDecl, {
})
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
// declaring the typedef, not something that was written in the
// source.
OpenPOWER on IntegriCloud