Skip to content

Commit 98f9ea4

Browse files
committed
Fix convertable
1 parent acb7fab commit 98f9ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

offload/libomptarget/interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ targetData(ident_t *Loc, int64_t DeviceId, int32_t ArgNum, void **ArgsBase,
116116
TargetDataFuncPtrTy TargetDataFunction, const char *RegionTypeMsg,
117117
const char *RegionName) {
118118
assert(PM && "Runtime not initialized");
119-
static_assert(std::is_convertible_v<TargetAsyncInfoTy, AsyncInfoTy>,
119+
static_assert(std::is_convertible_v<TargetAsyncInfoTy &, AsyncInfoTy &>,
120120
"TargetAsyncInfoTy must be convertible to AsyncInfoTy.");
121121

122122
TIMESCOPE_WITH_DETAILS_AND_IDENT("Runtime: Data Copy",
@@ -311,7 +311,7 @@ static inline int targetKernel(ident_t *Loc, int64_t DeviceId, int32_t NumTeams,
311311
int32_t ThreadLimit, void *HostPtr,
312312
KernelArgsTy *KernelArgs) {
313313
assert(PM && "Runtime not initialized");
314-
static_assert(std::is_convertible_v<TargetAsyncInfoTy, AsyncInfoTy>,
314+
static_assert(std::is_convertible_v<TargetAsyncInfoTy &, AsyncInfoTy &>,
315315
"Target AsyncInfoTy must be convertible to AsyncInfoTy.");
316316
DP("Entering target region for device %" PRId64 " with entry point " DPxMOD
317317
"\n",

0 commit comments

Comments
 (0)