summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2010-08-18 04:26:59 +0000
committerJordy Rose <jediknil@belkadan.com>2010-08-18 04:26:59 +0000
commitbc80329f1f674ee93134d6205b61a692e3a158bf (patch)
tree4d96e6e4ce6a4766b6ef5167de858b80f31dbae1
parentc8e38eb60b88a33ea3042f092bc94acd32d3d5d6 (diff)
downloadbcm5719-llvm-bc80329f1f674ee93134d6205b61a692e3a158bf.tar.gz
bcm5719-llvm-bc80329f1f674ee93134d6205b61a692e3a158bf.zip
Use RegionStateTy everywhere we mean ImmutableMap<SymbolRef, RefState>
llvm-svn: 111351
-rw-r--r--clang/lib/Checker/MallocChecker.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Checker/MallocChecker.cpp b/clang/lib/Checker/MallocChecker.cpp
index 4aeaae424e9..7aa89e09989 100644
--- a/clang/lib/Checker/MallocChecker.cpp
+++ b/clang/lib/Checker/MallocChecker.cpp
@@ -119,7 +119,7 @@ typedef llvm::ImmutableMap<SymbolRef, RefState> RegionStateTy;
namespace clang {
template <>
struct GRStateTrait<RegionState>
- : public GRStatePartialTrait<llvm::ImmutableMap<SymbolRef, RefState> > {
+ : public GRStatePartialTrait<RegionStateTy> {
static void *GDMIndex() { return MallocChecker::getTag(); }
};
}
@@ -588,10 +588,9 @@ void MallocChecker::EvalEndPath(GREndPathNodeBuilder &B, void *tag,
GRExprEngine &Eng) {
SaveAndRestore<bool> OldHasGen(B.HasGeneratedNode);
const GRState *state = B.getState();
- typedef llvm::ImmutableMap<SymbolRef, RefState> SymMap;
- SymMap M = state->get<RegionState>();
+ RegionStateTy M = state->get<RegionState>();
- for (SymMap::iterator I = M.begin(), E = M.end(); I != E; ++I) {
+ for (RegionStateTy::iterator I = M.begin(), E = M.end(); I != E; ++I) {
RefState RS = I->second;
if (RS.isAllocated()) {
ExplodedNode *N = B.generateNode(state, tag, B.getPredecessor());
OpenPOWER on IntegriCloud