aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-28 20:59:57 +0000
committerChris Lattner <sabre@nondot.org>2003-01-28 20:59:57 +0000
commit3f24d7a2cd54abf84925a2dce2f7cc6a61da2b3d (patch)
tree31f87ab5aba26514951ccc507a7ddb776b5a0340 /lib/Analysis/DataStructure/Local.cpp
parentfd373cb944edef806f850cc0a4f91d55ae7c8dba (diff)
free instructions mark their operands as being heap nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 93c534abcf..2df0fd434f 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/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...