Teach GRExprEngine to handle the initialization of the condition variable of a ForStmt.

llvm-svn: 92114
This commit is contained in:
Ted Kremenek 2009-12-24 01:49:25 +00:00
parent ec92f9492b
commit b135a13564
1 changed files with 6 additions and 0 deletions

View File

@ -655,6 +655,12 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) {
VisitDeclStmt(cast<DeclStmt>(S), Pred, Dst);
break;
case Stmt::ForStmtClass:
// This case isn't for branch processing, but for handling the
// initialization of a condition variable.
VisitCondInit(cast<ForStmt>(S)->getConditionVariable(), S, Pred, Dst);
break;
case Stmt::ImplicitCastExprClass:
case Stmt::CStyleCastExprClass: {
CastExpr* C = cast<CastExpr>(S);