llvm.org GIT mirror llvm / c3bb9ef
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291656 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 2 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
8181 ON_CALL(static_cast(*this),
8282 run(_, _, testing::Matcher(_)...))
8383 .WillByDefault(Return(this->getResult()));
84 auto InvalidateLambda = [](IRUnitT &IR, const PreservedAnalyses &PA,
85 typename AnalysisManagerT::Invalidator &Inv) {
86 auto PAC = PA.template getChecker();
87 return !PAC.preserved() &&
88 !PAC.template preservedSet>();
89 };
8490 ON_CALL(static_cast(*this), invalidate(_, _, _))
85 .WillByDefault(Invoke([](IRUnitT &IR, const PreservedAnalyses &PA,
86 typename AnalysisManagerT::Invalidator &Inv) {
87 auto PAC = PA.template getChecker();
88 return !PAC.preserved() &&
89 !PAC.template preservedSet>();
90 }));
91 .WillByDefault(Invoke(InvalidateLambda));
9192 }
9293 };
9394