mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 19:10:19 +00:00
Compute node offsets correctly
llvm-svn: 9895
This commit is contained in:
parent
fd7a4f1337
commit
6deb20046e
@ -1652,13 +1652,13 @@ void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
|
||||
if (Entry.getNode()) {
|
||||
// Termination of recursion!
|
||||
assert(Entry.getNode() == N2 &&
|
||||
Entry.getOffset() == (NH1.getOffset()+NH2.getOffset()) &&
|
||||
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) &&
|
||||
"Inconsistent mapping detected!");
|
||||
return;
|
||||
}
|
||||
|
||||
Entry.setNode(N2);
|
||||
Entry.setOffset(NH1.getOffset()+NH2.getOffset());
|
||||
Entry.setOffset(NH2.getOffset()-NH1.getOffset());
|
||||
|
||||
// Loop over all of the fields that N1 and N2 have in common, recursively
|
||||
// mapping the edges together now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user