mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 16:54:58 +00:00
Make this work with GLIBCXX_DEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8202010364
commit
67fcdf7f65
@ -429,8 +429,15 @@ static bool MergeCompare(const std::pair<unsigned,MachineBasicBlock*> &p,
|
|||||||
return true;
|
return true;
|
||||||
else if (p.second->getNumber() > q.second->getNumber())
|
else if (p.second->getNumber() > q.second->getNumber())
|
||||||
return false;
|
return false;
|
||||||
else
|
else {
|
||||||
|
// _GLIBCXX_DEBUG needs to check strict weak ordering and it
|
||||||
|
// does it by doing a compare on the same object.
|
||||||
|
#ifdef _GLIBCXX_DEBUG
|
||||||
|
return(false);
|
||||||
|
#else
|
||||||
assert(0 && "Predecessor appears twice");
|
assert(0 && "Predecessor appears twice");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// See if any of the blocks in MergePotentials (which all have a common single
|
// See if any of the blocks in MergePotentials (which all have a common single
|
||||||
|
Loading…
x
Reference in New Issue
Block a user