projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06f103
)
Fix a node mapping problem that was causing the pool allocator to locally allocate
author
Chris Lattner
<sabre@nondot.org>
Wed, 3 Mar 2004 05:34:31 +0000
(
05:34
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 3 Mar 2004 05:34:31 +0000
(
05:34
+0000)
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
lib/Analysis/DataStructure/DataStructure.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/DataStructure.cpp
b/lib/Analysis/DataStructure/DataStructure.cpp
index 270a0bf9e0c3cacf26a9808d88dcf9add440c8b9..3bae138d697783b0216c2dee95cbacdc8cb997a8 100644
(file)
--- 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);
}