@@ -10358,8 +10358,8 @@ void CGOpenMPRuntime::emitTargetCall(
10358
10358
llvm::Value *MapTypesArray = nullptr;
10359
10359
llvm::Value *MapNamesArray = nullptr;
10360
10360
// Generate code for the host fallback function.
10361
- auto &&FallbackGen = [this, OutlinedFn, &D, &CapturedVars, RequiresOuterTask,
10362
- &CS, OffloadingMandatory](CodeGenFunction &CGF) {
10361
+ auto &&FallbackGen = [this, &D, OutlinedFn, &CapturedVars, RequiresOuterTask, &CS ,
10362
+ OffloadingMandatory](CodeGenFunction &CGF) {
10363
10363
if (OffloadingMandatory) {
10364
10364
CGF.Builder.CreateUnreachable();
10365
10365
} else {
@@ -10371,9 +10371,8 @@ void CGOpenMPRuntime::emitTargetCall(
10371
10371
}
10372
10372
};
10373
10373
// Fill up the pointer arrays and transfer execution to the device.
10374
- auto &&ThenGen = [this, Device, OutlinedFn, OutlinedFnID, &D, &InputInfo,
10375
- &MapTypesArray, &MapNamesArray, &CS, RequiresOuterTask,
10376
- &CapturedVars, SizeEmitter,
10374
+ auto &&ThenGen = [this, Device, OutlinedFnID, &D, &InputInfo,
10375
+ &MapTypesArray, &MapNamesArray, SizeEmitter,
10377
10376
FallbackGen](CodeGenFunction &CGF, PrePostActionTy &) {
10378
10377
if (Device.getInt() == OMPC_DEVICE_ancestor) {
10379
10378
// Reverse offloading is not supported, so just execute on the host.
@@ -10392,6 +10391,7 @@ void CGOpenMPRuntime::emitTargetCall(
10392
10391
10393
10392
// From this point on, we need to have an ID of the target region defined.
10394
10393
assert(OutlinedFnID && "Invalid outlined function ID!");
10394
+ (void)OutlinedFnID;
10395
10395
10396
10396
// Emit device ID if any.
10397
10397
llvm::Value *DeviceID;
@@ -10529,8 +10529,7 @@ void CGOpenMPRuntime::emitTargetCall(
10529
10529
};
10530
10530
10531
10531
// Notify that the host version must be executed.
10532
- auto &&ElseGen = [this, &D, OutlinedFn, &CS, &CapturedVars, RequiresOuterTask,
10533
- FallbackGen](CodeGenFunction &CGF, PrePostActionTy &) {
10532
+ auto &&ElseGen = [FallbackGen](CodeGenFunction &CGF, PrePostActionTy &) {
10534
10533
FallbackGen(CGF);
10535
10534
};
10536
10535
0 commit comments