diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-04-05 13:00:12 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-04-05 13:00:12 +0000 |
| commit | 973b5f55f85428085c2206920a96d2c5496a8615 (patch) | |
| tree | 9b8243162b3cff50d1431d685f1ea473eae5530b /clang/lib/Checker | |
| parent | 0151d7b0252e93b8dddf2e8c6d3b6a62b7ab1792 (diff) | |
| download | bcm5719-llvm-973b5f55f85428085c2206920a96d2c5496a8615.tar.gz bcm5719-llvm-973b5f55f85428085c2206920a96d2c5496a8615.zip | |
Since now we process regions in clusters when removing dead bindings, this
code can be removed.
llvm-svn: 100428
Diffstat (limited to 'clang/lib/Checker')
| -rw-r--r-- | clang/lib/Checker/Environment.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Checker/Environment.cpp b/clang/lib/Checker/Environment.cpp index cc71f8569c6..e2568b66377 100644 --- a/clang/lib/Checker/Environment.cpp +++ b/clang/lib/Checker/Environment.cpp @@ -137,14 +137,6 @@ EnvironmentManager::RemoveDeadBindings(Environment Env, const Stmt *S, if (isa<loc::MemRegionVal>(X)) { const MemRegion* R = cast<loc::MemRegionVal>(X).getRegion(); DRoots.push_back(R); - // Mark the super region of the RX as live. - // e.g.: int x; char *y = (char*) &x; if (*y) ... - // 'y' => element region. 'x' is its super region. - // We only add one level super region for now. - - // FIXME: maybe multiple level of super regions should be added. - if (const SubRegion *SR = dyn_cast<SubRegion>(R)) - DRoots.push_back(SR->getSuperRegion()); } // Mark all symbols in the block expr's value live. |

