Skip to content

Commit 1d1b089

Browse files
committed
Fix more unused lambda capture warnings, NFC
1 parent 489637e commit 1d1b089

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10358,8 +10358,8 @@ void CGOpenMPRuntime::emitTargetCall(
1035810358
llvm::Value *MapTypesArray = nullptr;
1035910359
llvm::Value *MapNamesArray = nullptr;
1036010360
// 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) {
1036310363
if (OffloadingMandatory) {
1036410364
CGF.Builder.CreateUnreachable();
1036510365
} else {
@@ -10371,9 +10371,8 @@ void CGOpenMPRuntime::emitTargetCall(
1037110371
}
1037210372
};
1037310373
// 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,
1037710376
FallbackGen](CodeGenFunction &CGF, PrePostActionTy &) {
1037810377
if (Device.getInt() == OMPC_DEVICE_ancestor) {
1037910378
// Reverse offloading is not supported, so just execute on the host.
@@ -10392,6 +10391,7 @@ void CGOpenMPRuntime::emitTargetCall(
1039210391

1039310392
// From this point on, we need to have an ID of the target region defined.
1039410393
assert(OutlinedFnID && "Invalid outlined function ID!");
10394+
(void)OutlinedFnID;
1039510395

1039610396
// Emit device ID if any.
1039710397
llvm::Value *DeviceID;
@@ -10529,8 +10529,7 @@ void CGOpenMPRuntime::emitTargetCall(
1052910529
};
1053010530

1053110531
// 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 &) {
1053410533
FallbackGen(CGF);
1053510534
};
1053610535

0 commit comments

Comments
 (0)