diff options
| author | Craig Silverstein <csilvers2000@yahoo.com> | 2010-10-15 06:51:01 +0000 |
|---|---|---|
| committer | Craig Silverstein <csilvers2000@yahoo.com> | 2010-10-15 06:51:01 +0000 |
| commit | 12a198e5b116a3682560b0a3d35b00ff66ab77cc (patch) | |
| tree | 0374738c290c014468afa33ffd3d53d3a103ddc9 | |
| parent | 1c9c3fd50a05147d9e14d12bb42910eda831a373 (diff) | |
| download | bcm5719-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.h | 2 |
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. |

