Make this work with GLIBCXX_DEBUG.

llvm-svn: 38516
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index d0dcc70..431bc4e 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -429,8 +429,15 @@
       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