diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:43:53 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:43:53 +0000 |
| commit | 4db44b62ad31cd3d069ceda4912d785709ac4712 (patch) | |
| tree | c535a1ed020f23a8c0b0a3fcbd51c993506c0801 /clang/lib/Analysis/GRExprEngine.cpp | |
| parent | dd082cf676f2643f20a22663314f3799a33844be (diff) | |
| download | bcm5719-llvm-4db44b62ad31cd3d069ceda4912d785709ac4712.tar.gz bcm5719-llvm-4db44b62ad31cd3d069ceda4912d785709ac4712.zip | |
Don't use DeclStmt::getDecl(); this will eventually disappear. Just fetch the first decl using the DeclStmt::decl_iterator.
llvm-svn: 57194
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
| -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; |

