summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-05-21 15:38:25 +0000
committerManuel Klimek <klimek@google.com>2015-05-21 15:38:25 +0000
commit2267264ceb135ddca3beee193c47496d05a74e23 (patch)
treeda23c12deda017f20497a07263535bbef07c4c36
parent86425451e58c7237d13e3eb3f22defc79cf4abda (diff)
std::sort must be called with a strict weak ordering.
Found by a debug enabled stl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237906 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/WinEHPrepare.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp
index 77ee6396bb4..7246e1cf3ea 100644
--- a/lib/CodeGen/WinEHPrepare.cpp
+++ b/lib/CodeGen/WinEHPrepare.cpp
@@ -731,10 +731,10 @@ bool WinEHPrepare::prepareExceptionHandlers(
// to a block within another outlined catch handler that would otherwise
// be unreachable, we need to outline the nested landing pad before we
// outline the landing pad which encloses it.
- if (!isAsynchronousEHPersonality(Personality))
- std::sort(LPads.begin(), LPads.end(),
- [this](LandingPadInst* const &L, LandingPadInst* const &R) {
- return DT->dominates(R->getParent(), L->getParent());
+ if (!isAsynchronousEHPersonality(Personality))
+ std::sort(LPads.begin(), LPads.end(),
+ [this](LandingPadInst *const &L, LandingPadInst *const &R) {
+ return DT->properlyDominates(R->getParent(), L->getParent());
});
// This container stores the llvm.eh.recover and IndirectBr instructions