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 5c8b3730..0e61f03 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -448,7 +448,7 @@
// 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