summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit362dab3705c784cc29235ee167bbde01cc81fbc4 (patch)
treeab0b3823b2d190ab1f1f4e76859893b5eebfceb1 /llvm/lib/Analysis/DataStructure/Local.cpp
parentaa6b2bfd782f869d4b84bd51c704ebaf9d4cecab (diff)
downloadbcm5719-llvm-362dab3705c784cc29235ee167bbde01cc81fbc4.tar.gz
bcm5719-llvm-362dab3705c784cc29235ee167bbde01cc81fbc4.zip
free instructions mark their operands as being heap nodes.
llvm-svn: 5425
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp3
1 files changed, 2 insertions, 1 deletions
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...
OpenPOWER on IntegriCloud