1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00

Compute node offsets correctly

llvm-svn: 9895
This commit is contained in:
Chris Lattner 2003-11-11 20:12:32 +00:00
parent fd7a4f1337
commit 6deb20046e

View File

@ -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.