diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-18 15:54:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-18 15:54:42 +0000 |
commit | db7a680aec86757000c2a0e8aa7c1826129803ce (patch) | |
tree | 41982aa46f2ffa50083f92321d2a8f81eabeb61d /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 93dc95fc7d6a4cfdbec470efbd9f7a37b38241ea (diff) | |
download | bcm5719-llvm-db7a680aec86757000c2a0e8aa7c1826129803ce.tar.gz bcm5719-llvm-db7a680aec86757000c2a0e8aa7c1826129803ce.zip |
Implement cast nodes correctly.
llvm-svn: 2964
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 800c82ad982..6bc5a716fc9 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/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)); |