From 362dab3705c784cc29235ee167bbde01cc81fbc4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 Jan 2003 20:59:57 +0000 Subject: free instructions mark their operands as being heap nodes. llvm-svn: 5425 --- llvm/lib/Analysis/DataStructure/Local.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp') diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 93c534abcf8..2df0fd434fa 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -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... -- cgit v1.2.3