Skip to content

Commit

Permalink
Buildbot debugging of 0d0b901 (lambda/function_ref lifetime issues)
Browse files Browse the repository at this point in the history
This is failing on several buildbots with some inexplicable (to me,
right now) crashes. Let's see if this change is adequate to unblock the
buildbots & further understanding can be gained later.
  • Loading branch information
dwblaikie committed Mar 23, 2020
1 parent 5792c22 commit 2ec59a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/AST/OpenMPClause.h
Expand Up @@ -7061,9 +7061,9 @@ struct OMPTraitInfo {

bool anyScoreOrCondition(
llvm::function_ref<bool(Expr *&, bool /* IsScore */)> Cond) {
return llvm::any_of(Sets, [Cond](OMPTraitInfo::OMPTraitSet &Set) {
return llvm::any_of(Sets, [&](OMPTraitInfo::OMPTraitSet &Set) {
return llvm::any_of(
Set.Selectors, [Cond](OMPTraitInfo::OMPTraitSelector &Selector) {
Set.Selectors, [&](OMPTraitInfo::OMPTraitSelector &Selector) {
return Cond(Selector.ScoreOrCondition,
/* IsScore */ Selector.Kind !=
llvm::omp::TraitSelector::user_condition);
Expand Down

0 comments on commit 2ec59a0

Please sign in to comment.