diff options
| author | Anna Zaks <ganna@apple.com> | 2012-02-24 16:49:41 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2012-02-24 16:49:41 +0000 |
| commit | cdf24a9a5e1df287bdb3a1e9144588990051cb8e (patch) | |
| tree | d3ab87e2ad7543275c7d72a226f0d6246f2765ef /clang/lib | |
| parent | 1a16f4985848c6ad8291883dfbe44cdb9be08b56 (diff) | |
| download | bcm5719-llvm-cdf24a9a5e1df287bdb3a1e9144588990051cb8e.tar.gz bcm5719-llvm-cdf24a9a5e1df287bdb3a1e9144588990051cb8e.zip | |
[analyzer] We were silently stopping exploring the path after
visiting 'return;' statement!
This most likely caused us to skip a bunch of code when analyzing with
inlining.
llvm-svn: 151368
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp index c53b7b1c0ac..d2f81adda1e 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp @@ -432,7 +432,4 @@ void ExprEngine::VisitReturnStmt(const ReturnStmt *RS, ExplodedNode *Pred, B.generateNode(RS, *it, (*it)->getState()); } } - else { - B.takeNodes(dstPreVisit); - } } |

