1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Make this work with GLIBCXX_DEBUG.

llvm-svn: 38516
This commit is contained in:
David Greene 2007-07-10 22:00:30 +00:00
parent f6d010e93d
commit 8d77dcca00

View File

@ -429,8 +429,15 @@ static bool MergeCompare(const std::pair<unsigned,MachineBasicBlock*> &p,
return true;
else if (p.second->getNumber() > q.second->getNumber())
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");
#endif
}
}
// See if any of the blocks in MergePotentials (which all have a common single