From: Chris Lattner Date: Wed, 22 Jan 2003 22:00:24 +0000 (+0000) Subject: Fix analysis of the Burg program X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f6fef8c2696ec014affab011d71c3c86372051f;p=oota-llvm.git Fix analysis of the Burg program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5401 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 5c8b37302b8..0e61f037813 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -448,7 +448,7 @@ void DSNode::MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH) { // Make all of the outgoing links of *NH now be outgoing links of // this. This can cause recursive merging! // - for (unsigned i = 0; i < NSize; i += DS::PointerSize) { + for (unsigned i = 0; i < NH.getNode()->getSize(); i += DS::PointerSize) { DSNodeHandle &Link = NH.getNode()->getLink(i); if (Link.getNode()) { // Compute the offset into the current node at which to