Skip to content

Commit

Permalink
Merge pull request #4 from dtzWill/fix-ref-to-dead-obj-in-consg
Browse files Browse the repository at this point in the history
Fix memory bug in ConsG, copy to avoid ref into dead object.
  • Loading branch information
Yulei Sui committed May 12, 2016
2 parents b05457b + 8356a1b commit 509ddbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MemoryModel/ConsG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void ConstraintGraph::reTargetDstOfEdge(ConstraintEdge* edge, ConstraintNode* ne
addCopyCGEdge(srcId,newDstNodeID);
}
else if(NormalGepCGEdge* gep = dyn_cast<NormalGepCGEdge>(edge)) {
const LocationSet& ls = gep->getLocationSet();
const LocationSet ls = gep->getLocationSet();
removeDirectEdge(gep);
addNormalGepCGEdge(srcId,newDstNodeID,ls);
}
Expand Down

0 comments on commit 509ddbc

Please sign in to comment.