diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-05-18 00:28:37 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-05-18 00:28:37 +0000 |
| commit | b013b0bc042912a090f2c5b9a5c5da998d523b71 (patch) | |
| tree | a9bb2c448334163f930768c4e56156aff450cc18 /clang/lib/Checker | |
| parent | 0dd05fb1675d72c3bb2a31a06fde53cb13db675d (diff) | |
| download | bcm5719-llvm-b013b0bc042912a090f2c5b9a5c5da998d523b71.tar.gz bcm5719-llvm-b013b0bc042912a090f2c5b9a5c5da998d523b71.zip | |
Add option '-analyzer-max-loop', which specifies the maximum
number of times the analyzer will go through a loop.
llvm-svn: 104007
Diffstat (limited to 'clang/lib/Checker')
| -rw-r--r-- | clang/lib/Checker/GRExprEngine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp index e9f42b46400..24176586728 100644 --- a/clang/lib/Checker/GRExprEngine.cpp +++ b/clang/lib/Checker/GRExprEngine.cpp @@ -1017,9 +1017,8 @@ void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred, bool GRExprEngine::ProcessBlockEntrance(CFGBlock* B, const ExplodedNode *Pred, GRBlockCounter BC) { - return BC.getNumVisited(Pred->getLocationContext()->getCurrentStackFrame(), - B->getBlockID()) < 3; + B->getBlockID()) < AMgr.getMaxLoop(); } //===----------------------------------------------------------------------===// |

