Skip to content

Commit 4f751f7

Browse files
committed
Address review comments
1 parent 6322239 commit 4f751f7

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
@@ -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.
13431343
static 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);

0 commit comments

Comments
 (0)