Skip to content

Commit a8046f7

Browse files
koparasytru
authored andcommitted
[OpenMP] record-replay use static-cast (#70516)
[OpenMP] Fixes #69905 (cherry picked from commit 01828c4)
1 parent 12bbcd6 commit a8046f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ int main(int argc, char **argv) {
8484
auto *TgtArgOffsetsArray =
8585
JsonKernelInfo->getAsObject()->getArray("ArgOffsets");
8686
for (auto It : *TgtArgOffsetsArray)
87-
TgtArgOffsets.push_back(
88-
reinterpret_cast<ptrdiff_t>(It.getAsInteger().value()));
87+
TgtArgOffsets.push_back(static_cast<ptrdiff_t>(It.getAsInteger().value()));
8988

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

0 commit comments

Comments
 (0)