forked from OSchip/llvm-project
Teach GRExprEngine to handle the initialization of the condition variable of a ForStmt.
llvm-svn: 92114
This commit is contained in:
parent
ec92f9492b
commit
b135a13564
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue