diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-03 05:34:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-03 05:34:31 +0000 |
commit | b1aaeee48a34a3b6fbffcdc25b29c9781214f3ff (patch) | |
tree | 3bc07ecc1b2021697b59c9e0d4e525f336b14431 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | b06f103d0c0ebda7a978b31074173e5c28a8ed84 (diff) |
Fix a node mapping problem that was causing the pool allocator to locally allocate
nodes that were globally live, thus breaking programs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 270a0bf9e0..3bae138d69 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1847,4 +1847,7 @@ void DSGraph::computeNodeMapping(const DSNodeHandle &NH1, for (unsigned i = 0, e = N1->getSize(); i < e; i += DS::PointerSize) if (unsigned(N2Idx)+i < N2Size) computeNodeMapping(N1->getLink(i), N2->getLink(N2Idx+i), NodeMap); + else + computeNodeMapping(N1->getLink(i), + N2->getLink(unsigned(N2Idx+i) % N2Size), NodeMap); } |