diff options
author | Anna Zaks <ganna@apple.com> | 2011-12-06 23:12:33 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-12-06 23:12:33 +0000 |
commit | ee1a43533b9311d6e7ef5e07cfa079060b5283d1 (patch) | |
tree | ec56567fa0c4639d1398f7b6f67436eb0fd5c096 /clang/lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | c25efccc8b448341f1aa124bb6fcc37a72dc0a46 (diff) | |
download | bcm5719-llvm-ee1a43533b9311d6e7ef5e07cfa079060b5283d1.tar.gz bcm5719-llvm-ee1a43533b9311d6e7ef5e07cfa079060b5283d1.zip |
[analyzer] Refactor: Move symbol_iterator from SVal to SymExpr, use it
for finding dependent symbols for taint.
llvm-svn: 145986
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/RegionStore.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/RegionStore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp index 4f811dfa733..56ce0e13a9a 100644 --- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp @@ -1721,8 +1721,8 @@ void removeDeadBindingsWorker::VisitBinding(SVal V) { AddToWorkList(R); // Update the set of live symbols. - for (SVal::symbol_iterator SI=V.symbol_begin(), SE=V.symbol_end(); - SI!=SE;++SI) + for (SymExpr::symbol_iterator SI = V.symbol_begin(), SE = V.symbol_end(); + SI!=SE; ++SI) SymReaper.markLive(*SI); } @@ -1810,7 +1810,7 @@ StoreRef RegionStoreManager::removeDeadBindings(Store store, SymReaper.maybeDead(SymR->getSymbol()); SVal X = I.getData(); - SVal::symbol_iterator SI = X.symbol_begin(), SE = X.symbol_end(); + SymExpr::symbol_iterator SI = X.symbol_begin(), SE = X.symbol_end(); for (; SI != SE; ++SI) SymReaper.maybeDead(*SI); } |