summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-29 16:35:09 +0000
committerChris Lattner <sabre@nondot.org>2009-03-29 16:35:09 +0000
commit6c84a5a39481222d18cd5004db76258c6d0cb4fd (patch)
treedf2e68fa76ee321460a21557850d334f71e3f125 /clang
parent3d954d5d0ef750aad1bb718bda6954629b56c356 (diff)
downloadbcm5719-llvm-6c84a5a39481222d18cd5004db76258c6d0cb4fd.tar.gz
bcm5719-llvm-6c84a5a39481222d18cd5004db76258c6d0cb4fd.zip
DeclRefExpr refers to one decl, not all the declarators in a declaration.
Ted, please check this, this change causes no regression tests to fail. llvm-svn: 68001
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h b/clang/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
index 89b365c5b64..ee79c517030 100644
--- a/clang/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
+++ b/clang/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) {
OpenPOWER on IntegriCloud