Skip to content

Commit

Permalink
[OpenMP] record-replay use static-cast (#70516)
Browse files Browse the repository at this point in the history
[OpenMP] Fixes #69905

(cherry picked from commit 01828c4)
  • Loading branch information
koparasy authored and tru committed Oct 31, 2023
1 parent 12bbcd6 commit a8046f7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ int main(int argc, char **argv) {
auto *TgtArgOffsetsArray =
JsonKernelInfo->getAsObject()->getArray("ArgOffsets");
for (auto It : *TgtArgOffsetsArray)
TgtArgOffsets.push_back(
reinterpret_cast<ptrdiff_t>(It.getAsInteger().value()));
TgtArgOffsets.push_back(static_cast<ptrdiff_t>(It.getAsInteger().value()));

__tgt_offload_entry KernelEntry = {nullptr, nullptr, 0, 0, 0};
std::string KernelEntryName = KernelFunc.value().str();
Expand Down

0 comments on commit a8046f7

Please sign in to comment.