diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-24 18:25:58 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-24 18:25:58 +0000 |
commit | 0bb9d1b91754afb50685b2b830ddf6a713731bcf (patch) | |
tree | 7e105a9a2f76fcf699bf72c59cea6e30779d010c /clang/lib/StaticAnalyzer/Core/CheckerContext.cpp | |
parent | 7fec527d169c9c4a31330dd2566b66f461a2ae20 (diff) | |
download | bcm5719-llvm-0bb9d1b91754afb50685b2b830ddf6a713731bcf.tar.gz bcm5719-llvm-0bb9d1b91754afb50685b2b830ddf6a713731bcf.zip |
[analyzer] Use a temporary builder in CheckerContext.
First step toward removing the global Stmt builder. Added several transitional methods (like takeNodes/addNodes).
+ Stop early if the set of exploded nodes for the next iteration is empty.
llvm-svn: 142827
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CheckerContext.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/CheckerContext.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp index 5f43b77ceb6..e4638b756c6 100644 --- a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp +++ b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp @@ -16,10 +16,4 @@ using namespace clang; using namespace ento; -CheckerContext::~CheckerContext() { - // Copy the results into the Dst set. - for (NodeBuilder::iterator I = NB.begin(), - E = NB.end(); I != E; ++I) { - Dst.Add(*I); - } -} +CheckerContext::~CheckerContext() {} |