mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
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:
parent
5634b9f5e7
commit
cc7c4acffa
@ -1970,10 +1970,12 @@ void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
|
||||
DSNodeHandle &Entry = NodeMap[N1];
|
||||
if (Entry.getNode()) {
|
||||
// Termination of recursion!
|
||||
assert(!StrictChecking ||
|
||||
(Entry.getNode() == N2 &&
|
||||
Entry.getOffset() == (NH2.getOffset()-NH1.getOffset())) &&
|
||||
"Inconsistent mapping detected!");
|
||||
if (StrictChecking) {
|
||||
assert(Entry.getNode() == N2 && "Inconsistent mapping detected!");
|
||||
assert((Entry.getOffset() == (NH2.getOffset()-NH1.getOffset()) ||
|
||||
Entry.getNode()->isNodeCompletelyFolded()) &&
|
||||
"Inconsistent mapping detected!");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user