diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-29 16:35:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-29 16:35:09 +0000 |
commit | 827ecb0db9225c98f08cfc991598210bcf0045dd (patch) | |
tree | 64adc755c83db443c5e984f74befd7b011a52054 | |
parent | f279725f9772a8644957049971001f655b9041c9 (diff) |
DeclRefExpr refers to one decl, not all the declarators in a declaration.
Ted, please check this, this change causes no regression tests to fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68001 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h b/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h index 89b365c5b6..ee79c51703 100644 --- a/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h +++ b/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h @@ -37,8 +37,7 @@ class CFGRecStmtDeclVisitor : public CFGRecStmtVisitor<ImplClass> { public: void VisitDeclRefExpr(DeclRefExpr* DR) { - for (Decl* D = DR->getDecl(); D != NULL; D = D->getNextDeclarator()) - static_cast<ImplClass*>(this)->VisitDecl(D); + static_cast<ImplClass*>(this)->VisitDecl(DR->getDecl()); } void VisitDeclStmt(DeclStmt* DS) { |