projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9591c6
)
If assertions are not enabled, we should return False here.
author
Duncan Sands
<baldrick@free.fr>
Wed, 11 Jul 2007 08:47:55 +0000
(08:47 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Wed, 11 Jul 2007 08:47:55 +0000
(08:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38535
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/BranchFolding.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/BranchFolding.cpp
b/lib/CodeGen/BranchFolding.cpp
index 431bc4eca35c802415ed794632fee86858dedbb9..0fca98517946c3c33267441c850e9bd2d4cfb699 100644
(file)
--- a/
lib/CodeGen/BranchFolding.cpp
+++ b/
lib/CodeGen/BranchFolding.cpp
@@
-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);
}
}