From: Jordy Rose Date: Wed, 18 Aug 2010 04:26:59 +0000 (+0000) Subject: Use RegionStateTy everywhere we mean ImmutableMap X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09cef09aae997931914684c6c467a53086becda2;p=clang Use RegionStateTy everywhere we mean ImmutableMap git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111351 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Checker/MallocChecker.cpp b/lib/Checker/MallocChecker.cpp index 4aeaae424e..7aa89e0998 100644 --- a/lib/Checker/MallocChecker.cpp +++ b/lib/Checker/MallocChecker.cpp @@ -119,7 +119,7 @@ typedef llvm::ImmutableMap RegionStateTy; namespace clang { template <> struct GRStateTrait - : public GRStatePartialTrait > { + : public GRStatePartialTrait { static void *GDMIndex() { return MallocChecker::getTag(); } }; } @@ -588,10 +588,9 @@ void MallocChecker::EvalEndPath(GREndPathNodeBuilder &B, void *tag, GRExprEngine &Eng) { SaveAndRestore OldHasGen(B.HasGeneratedNode); const GRState *state = B.getState(); - typedef llvm::ImmutableMap SymMap; - SymMap M = state->get(); + RegionStateTy M = state->get(); - 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());