]> granicus.if.org Git - clang/commitdiff
Since now we process regions in clusters when removing dead bindings, this
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 5 Apr 2010 13:00:12 +0000 (13:00 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 5 Apr 2010 13:00:12 +0000 (13:00 +0000)
code can be removed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/Environment.cpp

index cc71f8569c62cf99055d4f1b0b70012a72e41ce7..e2568b66377b81b34acf97e49d0c6abb3bde0a90 100644 (file)
@@ -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.