diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 8f67d21a47d..77ee6396bb4 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -733,7 +733,7 @@ bool WinEHPrepare::prepareExceptionHandlers( // outline the landing pad which encloses it. if (!isAsynchronousEHPersonality(Personality)) std::sort(LPads.begin(), LPads.end(), - [this](LandingPadInst* &L, LandingPadInst* &R) { + [this](LandingPadInst* const &L, LandingPadInst* const &R) { return DT->dominates(R->getParent(), L->getParent()); }); |

