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 @@ -1426,12 +1426,12 @@ Error OpenMPIRBuilder::emitCancelationCheckImpl(
14261426 return Error::success ();
14271427}
14281428
1429- // Create wrapper function used to gather the outlined function's argument
1430- // structure from a shared buffer and to forward them to it when running in
1431- // Generic mode.
1432- //
1433- // The outlined function is expected to receive 2 integer arguments followed by
1434- // an optional pointer argument to an argument structure holding the rest.
1429+ // / Create wrapper function used to gather the outlined function's argument
1430+ // / structure from a shared buffer and to forward them to it when running in
1431+ // / Generic mode.
1432+ // /
1433+ // / The outlined function is expected to receive 2 integer arguments followed by
1434+ // / an optional pointer argument to an argument structure holding the rest.
14351435static Function *createTargetParallelWrapper (OpenMPIRBuilder *OMPIRBuilder,
14361436 Function &OutlinedFn) {
14371437 size_t NumArgs = OutlinedFn.arg_size ();
@@ -1562,7 +1562,7 @@ static void targetParallelCallback(
15621562 std::optional<omp::OMPTgtExecModeFlags> ExecMode =
15631563 getTargetKernelExecMode (*OuterFn);
15641564 Value *WrapperFn;
1565- if (ExecMode && *ExecMode & OMP_TGT_EXEC_MODE_GENERIC)
1565+ if (ExecMode && ( *ExecMode & OMP_TGT_EXEC_MODE_GENERIC) )
15661566 WrapperFn = createTargetParallelWrapper (OMPIRBuilder, OutlinedFn);
15671567 else
15681568 WrapperFn = Constant::getNullValue (PtrTy);
You can’t perform that action at this time.
0 commit comments