mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
If assertions are not enabled, we should return False here.
llvm-svn: 38535
This commit is contained in:
parent
2791a7ea6d
commit
aa83dc9037
@ -430,13 +430,12 @@ static bool MergeCompare(const std::pair<unsigned,MachineBasicBlock*> &p,
|
||||
else if (p.second->getNumber() > q.second->getNumber())
|
||||
return false;
|
||||
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
|
||||
// _GLIBCXX_DEBUG checks strict weak ordering, which involves comparing
|
||||
// an object with itself.
|
||||
#ifndef _GLIBCXX_DEBUG
|
||||
assert(0 && "Predecessor appears twice");
|
||||
#endif
|
||||
return(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user