diff options
| author | Manuel Klimek <klimek@google.com> | 2015-05-21 15:38:25 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2015-05-21 15:38:25 +0000 |
| commit | b00d42c10c1383142a77d4eb2d51f31c3c83bdd7 (patch) | |
| tree | 608ec7b79507a0cd80f40adaece0affb5b5515e7 /llvm/lib/CodeGen | |
| parent | 19bbeaf410361a695040f500c862a21c4e745568 (diff) | |
| download | bcm5719-llvm-b00d42c10c1383142a77d4eb2d51f31c3c83bdd7.tar.gz bcm5719-llvm-b00d42c10c1383142a77d4eb2d51f31c3c83bdd7.zip | |
std::sort must be called with a strict weak ordering.
Found by a debug enabled stl.
llvm-svn: 237906
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 77ee6396bb4..7246e1cf3ea 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/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 |

