mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[PM] Pull a lambda out of an argument into a named variable to try and
get a little more clarity about the nature of the issue MSVC is having with this code. llvm-svn: 291656
This commit is contained in:
parent
c483768d91
commit
9d614df7e2
@ -82,13 +82,14 @@ protected:
|
||||
ON_CALL(static_cast<DerivedT &>(*this),
|
||||
run(_, _, testing::Matcher<ExtraArgTs>(_)...))
|
||||
.WillByDefault(Return(this->getResult()));
|
||||
auto InvalidateLambda = [](IRUnitT &IR, const PreservedAnalyses &PA,
|
||||
typename AnalysisManagerT::Invalidator &Inv) {
|
||||
auto PAC = PA.template getChecker<Analysis>();
|
||||
return !PAC.preserved() &&
|
||||
!PAC.template preservedSet<AllAnalysesOn<IRUnitT>>();
|
||||
};
|
||||
ON_CALL(static_cast<DerivedT &>(*this), invalidate(_, _, _))
|
||||
.WillByDefault(Invoke([](IRUnitT &IR, const PreservedAnalyses &PA,
|
||||
typename AnalysisManagerT::Invalidator &Inv) {
|
||||
auto PAC = PA.template getChecker<Analysis>();
|
||||
return !PAC.preserved() &&
|
||||
!PAC.template preservedSet<AllAnalysesOn<IRUnitT>>();
|
||||
}));
|
||||
.WillByDefault(Invoke(InvalidateLambda));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user