Skip to content

Commit 2ec59a0

Browse files
committed
Buildbot debugging of 0d0b901 (lambda/function_ref lifetime issues)
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.
1 parent 5792c22 commit 2ec59a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/AST/OpenMPClause.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7061,9 +7061,9 @@ struct OMPTraitInfo {
70617061

70627062
bool anyScoreOrCondition(
70637063
llvm::function_ref<bool(Expr *&, bool /* IsScore */)> Cond) {
7064-
return llvm::any_of(Sets, [Cond](OMPTraitInfo::OMPTraitSet &Set) {
7064+
return llvm::any_of(Sets, [&](OMPTraitInfo::OMPTraitSet &Set) {
70657065
return llvm::any_of(
7066-
Set.Selectors, [Cond](OMPTraitInfo::OMPTraitSelector &Selector) {
7066+
Set.Selectors, [&](OMPTraitInfo::OMPTraitSelector &Selector) {
70677067
return Cond(Selector.ScoreOrCondition,
70687068
/* IsScore */ Selector.Kind !=
70697069
llvm::omp::TraitSelector::user_condition);

0 commit comments

Comments
 (0)