Buildbot debugging of 0d0b90105f92f6cd9cc7004d565834f4429183fb (lambda/function_ref...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2020 05:39:16 +0000 (22:39 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2020 05:43:44 +0000 (22:43 -0700)
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.

clang/include/clang/AST/OpenMPClause.h

index 548328d..a781797 100644 (file)
@@ -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);