Fix build error

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Kaylor 2015-05-20 23:58:44 +00:00
parent 6d1485e974
commit f12338a6b7

View File

@ -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());
});