From: Andrew Kaylor Date: Wed, 20 May 2015 23:58:44 +0000 (+0000) Subject: Fix build error X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f12338a6b7bb8a9db315c102c88310748f5212a5;p=llvm Fix build error git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237859 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index 8f67d21a47d..77ee6396bb4 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/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()); });