Skip to content

Commit f027b86

Browse files
committed
Address review comments
1 parent 9533653 commit f027b86

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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.
14351435
static 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);

0 commit comments

Comments
 (0)