Skip to content
Snippets Groups Projects
Commit 827ecb0d authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent f279725f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment