Fix analysis of the Burg program
authorChris Lattner <sabre@nondot.org>
Wed, 22 Jan 2003 22:00:24 +0000 (22:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 22 Jan 2003 22:00:24 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5401 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 5c8b37302b8db085698fb5055a86f16c4e71c79e..0e61f03781374a2afe994bb925ae537dc5ef4a7c 100644 (file)
@@ -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