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
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 93c534a..2df0fd4 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -394,7 +394,8 @@
 
 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...