diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-24 00:54:56 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-24 00:54:56 +0000 |
commit | 09bc3b7df66aca24d74a6648bf29e81aba9e4705 (patch) | |
tree | 055b517125b3eafe6b112642b9803cd5a4ecab80 /clang/lib/Analysis/GRExprEngine.cpp | |
parent | 1f07b4c439a742d8ccb3499f0726bd46ddaebf20 (diff) | |
download | bcm5719-llvm-09bc3b7df66aca24d74a6648bf29e81aba9e4705.tar.gz bcm5719-llvm-09bc3b7df66aca24d74a6648bf29e81aba9e4705.zip |
Teach GRExprEngine to handle the initialization of the condition variable of a WhileStmt.
llvm-svn: 92106
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index d7486f85134..06621af19ec 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -751,6 +751,12 @@ void GRExprEngine::Visit(Stmt* S, ExplodedNode* Pred, ExplodedNodeSet& Dst) { VisitUnaryOperator(U, Pred, Dst, false); break; } + + case Stmt::WhileStmtClass: + // This case isn't for branch processing, but for handling the + // initialization of a condition variable. + VisitCondInit(cast<WhileStmt>(S)->getConditionVariable(), S, Pred, Dst); + break; } } |