diff options
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 115d265dde4..1c3a170a568 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -1484,10 +1484,8 @@ void GRExprEngine::VisitCast(Expr* CastE, Expr* Ex, NodeTy* Pred, NodeSet& Dst){ void GRExprEngine::VisitDeclStmt(DeclStmt* DS, NodeTy* Pred, NodeSet& Dst) { - // The CFG has one DeclStmt per Decl, so we don't need to walk the - // Decl chain. - - ScopedDecl* D = DS->getDecl(); + // The CFG has one DeclStmt per Decl. + ScopedDecl* D = *DS->decl_begin(); if (!D || !isa<VarDecl>(D)) return; |

