]> granicus.if.org Git - clang/commitdiff
Fixed an elusive caching bug in ExplodedGraph construction when a PostStmtKind was...
authorTed Kremenek <kremenek@apple.com>
Fri, 17 Oct 2008 20:49:23 +0000 (20:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 17 Oct 2008 20:49:23 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57719 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/GRCoreEngine.h
lib/Analysis/GRCoreEngine.cpp

index 74311249b32d0821becced9e82473600e95b6714..1dd19efb4c320779ef07392cb713ae21b30a3f9f 100644 (file)
@@ -235,8 +235,12 @@ public:
   }
   
   NodeTy* MakeNode(ExplodedNodeSet<StateTy>& Dst, Stmt* S,
-                   NodeTy* Pred, const StateTy* St,
-                   ProgramPoint::Kind K = ProgramPoint::PostStmtKind) {    
+                   NodeTy* Pred, const StateTy* St) {
+    return MakeNode(Dst, S, Pred, St, PointKind);
+  }
+  
+  NodeTy* MakeNode(ExplodedNodeSet<StateTy>& Dst, Stmt* S,
+                   NodeTy* Pred, const StateTy* St, ProgramPoint::Kind K) {    
     
     const StateTy* PredState = GetState(Pred);
         
index 84a8d5522deb1bf8f6ce8cde2bb4ea4633049126..99e2a7f06e010f0fcdaba1e7857ffa727fe1a915 100644 (file)
@@ -318,6 +318,9 @@ static inline ProgramPoint GetPostLoc(Stmt* S, ProgramPoint::Kind K) {
     case ProgramPoint::PostLoadKind:
       return PostLoad(S);
       
+    case ProgramPoint::PostStoreKind:
+      return PostStore(S);
+      
     case ProgramPoint::PostPurgeDeadSymbolsKind:
       return PostPurgeDeadSymbols(S);
   }