diff options
Diffstat (limited to 'clang/lib/Index/ASTVisitor.h')
-rw-r--r-- | clang/lib/Index/ASTVisitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Index/ASTVisitor.h b/clang/lib/Index/ASTVisitor.h index 6cfa381608a..943c7202531 100644 --- a/clang/lib/Index/ASTVisitor.h +++ b/clang/lib/Index/ASTVisitor.h @@ -104,7 +104,7 @@ public: } void VisitBlockExpr(BlockExpr *Node) { - Visit(Node->getBlockDecl()); + // The BlockDecl is also visited by 'VisitDeclContext()'. No need to visit it twice. } void VisitStmt(Stmt *Node) { |