Fix a tiny bug that caused an incorrect assertion failure poolallocating

boxed-sim.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-03-13 01:14:23 +00:00
parent 5634b9f5e7
commit cc7c4acffa

View File

@ -1970,10 +1970,12 @@ void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
DSNodeHandle &Entry = NodeMap[N1]; DSNodeHandle &Entry = NodeMap[N1];
if (Entry.getNode()) { if (Entry.getNode()) {
// Termination of recursion! // Termination of recursion!
assert(!StrictChecking || if (StrictChecking) {
(Entry.getNode() == N2 && assert(Entry.getNode() == N2 && "Inconsistent mapping detected!");
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset())) && assert((Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) ||
"Inconsistent mapping detected!"); Entry.getNode()->isNodeCompletelyFolded()) &&
"Inconsistent mapping detected!");
}
return; return;
} }