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 | 140b2cbd28f8ead94da6b7727534d5e34915724a (patch) | |
| tree | 1164b3624b73570e0a52098f010c874e4ff5034e | |
| parent | 93e9878c2c47980b98127357c847b82497a13686 (diff) | |
| download | bcm5719-llvm-140b2cbd28f8ead94da6b7727534d5e34915724a.tar.gz bcm5719-llvm-140b2cbd28f8ead94da6b7727534d5e34915724a.zip | |
Fix a node mapping problem that was causing the pool allocator to locally allocate
nodes that were globally live, thus breaking programs.
llvm-svn: 12094
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 270a0bf9e0c..3bae138d697 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/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); } |

