File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1334,12 +1334,12 @@ Error OpenMPIRBuilder::emitCancelationCheckImpl(
13341334 return Error::success ();
13351335}
13361336
1337- // Create wrapper function used to gather the outlined function's argument
1338- // structure from a shared buffer and to forward them to it when running in
1339- // Generic mode.
1340- //
1341- // The outlined function is expected to receive 2 integer arguments followed by
1342- // an optional pointer argument to an argument structure holding the rest.
1337+ // / Create wrapper function used to gather the outlined function's argument
1338+ // / structure from a shared buffer and to forward them to it when running in
1339+ // / Generic mode.
1340+ // /
1341+ // / The outlined function is expected to receive 2 integer arguments followed by
1342+ // / an optional pointer argument to an argument structure holding the rest.
13431343static Function *createTargetParallelWrapper (OpenMPIRBuilder *OMPIRBuilder,
13441344 Function &OutlinedFn) {
13451345 size_t NumArgs = OutlinedFn.arg_size ();
@@ -1470,7 +1470,7 @@ static void targetParallelCallback(
14701470 std::optional<omp::OMPTgtExecModeFlags> ExecMode =
14711471 getTargetKernelExecMode (*OuterFn);
14721472 Value *WrapperFn;
1473- if (ExecMode && *ExecMode & OMP_TGT_EXEC_MODE_GENERIC)
1473+ if (ExecMode && ( *ExecMode & OMP_TGT_EXEC_MODE_GENERIC) )
14741474 WrapperFn = createTargetParallelWrapper (OMPIRBuilder, OutlinedFn);
14751475 else
14761476 WrapperFn = Constant::getNullValue (PtrTy);
You can’t perform that action at this time.
0 commit comments