forked from OSchip/llvm-project
Fixed an elusive caching bug in ExplodedGraph construction when a PostStmtKind was used instead of a PostStoreKind.
llvm-svn: 57719
This commit is contained in:
parent
055891cbf3
commit
a196618ad0
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue