@@ -4006,8 +4006,8 @@ void CGOpenMPRuntime::emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
4006
4006
DepTaskArgs[5 ] = CGF.Builder .getInt32 (0 );
4007
4007
DepTaskArgs[6 ] = llvm::ConstantPointerNull::get (CGF.VoidPtrTy );
4008
4008
}
4009
- auto &&ThenCodeGen = [this , Loc, &Data, TDBase, KmpTaskTQTyRD,
4010
- NumDependencies, &TaskArgs,
4009
+ auto &&ThenCodeGen = [this , &Data, TDBase, KmpTaskTQTyRD, NumDependencies ,
4010
+ &TaskArgs,
4011
4011
&DepTaskArgs](CodeGenFunction &CGF, PrePostActionTy &) {
4012
4012
if (!Data.Tied ) {
4013
4013
auto PartIdFI = std::next (KmpTaskTQTyRD->field_begin (), KmpTaskTPartId);
@@ -4562,7 +4562,7 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
4562
4562
}
4563
4563
if (XExpr) {
4564
4564
auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl ());
4565
- auto &&AtomicRedGen = [BO, VD, IPriv,
4565
+ auto &&AtomicRedGen = [BO, VD,
4566
4566
Loc](CodeGenFunction &CGF, const Expr *XExpr,
4567
4567
const Expr *EExpr, const Expr *UpExpr) {
4568
4568
LValue X = CGF.EmitLValue (XExpr);
@@ -4572,7 +4572,7 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
4572
4572
CGF.EmitOMPAtomicSimpleUpdateExpr (
4573
4573
X, E, BO, /* IsXLHSInRHSPart=*/ true ,
4574
4574
llvm::AtomicOrdering::Monotonic, Loc,
4575
- [&CGF, UpExpr, VD, IPriv, Loc](RValue XRValue) {
4575
+ [&CGF, UpExpr, VD, Loc](RValue XRValue) {
4576
4576
CodeGenFunction::OMPPrivateScope PrivateScope (CGF);
4577
4577
PrivateScope.addPrivate (
4578
4578
VD, [&CGF, VD, XRValue, Loc]() -> Address {
@@ -5988,8 +5988,8 @@ void CGOpenMPRuntime::emitTargetCall(CodeGenFunction &CGF,
5988
5988
OffloadError);
5989
5989
5990
5990
// Fill up the pointer arrays and transfer execution to the device.
5991
- auto &&ThenGen = [&Ctx, & BasePointers, &Pointers, &Sizes, &MapTypes, Device,
5992
- OutlinedFnID, OffloadError, OffloadErrorQType,
5991
+ auto &&ThenGen = [&BasePointers, &Pointers, &Sizes, &MapTypes, Device,
5992
+ OutlinedFnID, OffloadError,
5993
5993
&D](CodeGenFunction &CGF, PrePostActionTy &) {
5994
5994
auto &RT = CGF.CGM .getOpenMPRuntime ();
5995
5995
// Emit the offloading arrays.
@@ -6275,8 +6275,8 @@ void CGOpenMPRuntime::emitTargetDataCalls(
6275
6275
// Generate the code for the opening of the data environment. Capture all the
6276
6276
// arguments of the runtime call by reference because they are used in the
6277
6277
// closing of the region.
6278
- auto &&BeginThenGen = [&D, &CGF, Device, &Info, &CodeGen, &NoPrivAction](
6279
- CodeGenFunction &CGF, PrePostActionTy &) {
6278
+ auto &&BeginThenGen = [&D, Device, &Info, &CodeGen](CodeGenFunction &CGF,
6279
+ PrePostActionTy &) {
6280
6280
// Fill up the arrays with all the mapped variables.
6281
6281
MappableExprsHandler::MapBaseValuesArrayTy BasePointers;
6282
6282
MappableExprsHandler::MapValuesArrayTy Pointers;
@@ -6322,8 +6322,7 @@ void CGOpenMPRuntime::emitTargetDataCalls(
6322
6322
};
6323
6323
6324
6324
// Generate code for the closing of the data region.
6325
- auto &&EndThenGen = [&CGF, Device, &Info](CodeGenFunction &CGF,
6326
- PrePostActionTy &) {
6325
+ auto &&EndThenGen = [Device, &Info](CodeGenFunction &CGF, PrePostActionTy &) {
6327
6326
assert (Info.isValid () && " Invalid data environment closing arguments." );
6328
6327
6329
6328
llvm::Value *BasePointersArrayArg = nullptr ;
@@ -6401,7 +6400,7 @@ void CGOpenMPRuntime::emitTargetDataStandAloneCall(
6401
6400
" Expecting either target enter, exit data, or update directives." );
6402
6401
6403
6402
// Generate the code for the opening of the data environment.
6404
- auto &&ThenGen = [&D, &CGF, Device](CodeGenFunction &CGF, PrePostActionTy &) {
6403
+ auto &&ThenGen = [&D, Device](CodeGenFunction &CGF, PrePostActionTy &) {
6405
6404
// Fill up the arrays with all the mapped variables.
6406
6405
MappableExprsHandler::MapBaseValuesArrayTy BasePointers;
6407
6406
MappableExprsHandler::MapValuesArrayTy Pointers;
0 commit comments