forked from OSchip/llvm-project
Fixed elusive caching bug that led to false positives.
llvm-svn: 49914
This commit is contained in:
parent
d556115e7e
commit
acefba896c
|
@ -164,6 +164,8 @@ public:
|
|||
Stmt* getStmt() const { return B[Idx]; }
|
||||
|
||||
CFGBlock* getBlock() const { return &B; }
|
||||
|
||||
bool hasGeneratedNode() const { return HasGeneratedNode; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -186,6 +188,8 @@ public:
|
|||
CleanedState = getLastNode()->getState();
|
||||
}
|
||||
|
||||
bool hasGeneratedNode() const { return NB.hasGeneratedNode(); }
|
||||
|
||||
void setObjCMsgExprAuditors(GRAuditor<StateTy> **B,
|
||||
GRAuditor<StateTy> **E) {
|
||||
ObjCMsgExprAuditBeg = B;
|
||||
|
|
|
@ -187,7 +187,8 @@ void GRExprEngine::ProcessStmt(Stmt* S, StmtNodeBuilder& builder) {
|
|||
// If no nodes were generated, generate a new node that has all the
|
||||
// dead mappings removed.
|
||||
|
||||
if (Dst.size() == 1 && *Dst.begin() == StmtEntryNode)
|
||||
if (Dst.size() == 1 && *Dst.begin() == StmtEntryNode &&
|
||||
!Builder->hasGeneratedNode())
|
||||
builder.generateNode(S, GetState(StmtEntryNode), StmtEntryNode);
|
||||
|
||||
// NULL out these variables to cleanup.
|
||||
|
|
Loading…
Reference in New Issue