mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +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];
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user