forked from OSchip/llvm-project
free instructions mark their operands as being heap nodes.
llvm-svn: 5425
This commit is contained in:
parent
aa6b2bfd78
commit
362dab3705
|
@ -394,7 +394,8 @@ void GraphBuilder::visitCallInst(CallInst &CI) {
|
|||
|
||||
void GraphBuilder::visitFreeInst(FreeInst &FI) {
|
||||
// Mark that the node is written to...
|
||||
getValueDest(*FI.getOperand(0)).getNode()->NodeType |= DSNode::Modified;
|
||||
getValueDest(*FI.getOperand(0)).getNode()->NodeType
|
||||
|= DSNode::Modified | DSNode::HeapNode;
|
||||
}
|
||||
|
||||
/// Handle casts...
|
||||
|
|
Loading…
Reference in New Issue