summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/ASTVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Index/ASTVisitor.h')
-rw-r--r--clang/lib/Index/ASTVisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Index/ASTVisitor.h b/clang/lib/Index/ASTVisitor.h
index 0ae78fb74ff..6cfa381608a 100644
--- a/clang/lib/Index/ASTVisitor.h
+++ b/clang/lib/Index/ASTVisitor.h
@@ -52,8 +52,8 @@ public:
void VisitDeclaratorDecl(DeclaratorDecl *D) {
BaseDeclVisitor::VisitDeclaratorDecl(D);
- if (DeclaratorInfo *DInfo = D->getDeclaratorInfo())
- Visit(DInfo->getTypeLoc());
+ if (TypeSourceInfo *TInfo = D->getTypeSourceInfo())
+ Visit(TInfo->getTypeLoc());
}
void VisitFunctionDecl(FunctionDecl *D) {
OpenPOWER on IntegriCloud