aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-18 15:54:42 +0000
committerChris Lattner <sabre@nondot.org>2002-07-18 15:54:42 +0000
commit055dc2c67e405307fa734ae446037f121bf392ab (patch)
tree5db3da78d9b47bb759d07cb7eae91db7bc636a3a /lib/Analysis/DataStructure/DataStructure.cpp
parentf7ccb70604282fb7ce77edb8ed7423e2c8f6dcda (diff)
Implement cast nodes correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 800c82ad98..6bc5a716fc 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -248,9 +248,9 @@ void DSGraph::markIncompleteNodes() {
markIncompleteNode(Args[i]);
}
- // Mark all of the nodes pointed to by global nodes as incomplete...
+ // Mark all of the nodes pointed to by global or cast nodes as incomplete...
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
- if (Nodes[i]->NodeType & DSNode::GlobalNode) {
+ if (Nodes[i]->NodeType & (DSNode::GlobalNode | DSNode::CastNode)) {
DSNode *N = Nodes[i];
for (unsigned i = 0, e = N->getNumLinks(); i != e; ++i)
markIncompleteNode(N->getLink(i));