[clang] Remove unused capture in closure
authorGraham Hunter <graham.hunter@arm.com>
Tue, 22 Jun 2021 14:06:42 +0000 (15:06 +0100)
committerGraham Hunter <graham.hunter@arm.com>
Tue, 22 Jun 2021 14:09:39 +0000 (15:09 +0100)
c6a91ee6aaaa removed uses of IsMonotonic from OpenMP SIMD codegen,
but that left a capture of the variable unused which upset buildbots
using -Werror.

clang/lib/CodeGen/CGStmtOpenMP.cpp

index 3b2b70f..ba497a5 100644 (file)
@@ -3197,7 +3197,7 @@ bool CodeGenFunction::EmitOMPWorksharingLoop(
             getJumpDestInCurrentScope(createBasicBlock("omp.loop.exit"));
         emitCommonSimdLoop(
             *this, S,
-            [&S, IsMonotonic](CodeGenFunction &CGF, PrePostActionTy &) {
+            [&S](CodeGenFunction &CGF, PrePostActionTy &) {
               if (isOpenMPSimdDirective(S.getDirectiveKind())) {
                 CGF.EmitOMPSimdInit(S);
               } else if (const auto *C = S.getSingleClause<OMPOrderClause>()) {