1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

free instructions mark their operands as being heap nodes.

llvm-svn: 5425
This commit is contained in:
Chris Lattner 2003-01-28 20:59:57 +00:00
parent 36e25fbd8f
commit 712b3598b8

View File

@ -394,7 +394,8 @@ void GraphBuilder::visitCallInst(CallInst &CI) {
void GraphBuilder::visitFreeInst(FreeInst &FI) { void GraphBuilder::visitFreeInst(FreeInst &FI) {
// Mark that the node is written to... // 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... /// Handle casts...