[Openmp-commits] [openmp] [openmp] record-replay use static-cast (PR #70516)
Konstantinos Parasyris via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 27 15:12:53 PDT 2023
https://github.com/koparasy created https://github.com/llvm/llvm-project/pull/70516
Fixes #69905
>From f6ee5ee8c7d91a5437b2d5a077c43d76194a5111 Mon Sep 17 00:00:00 2001
From: koparasy <parasyris1 at llnl.gov>
Date: Fri, 27 Oct 2023 15:09:51 -0700
Subject: [PATCH] Fixes #69905
---
.../libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp b/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
index 57773900e1e1b44..0de59e23634a567 100644
--- a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
+++ b/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
@@ -85,8 +85,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();
More information about the Openmp-commits
mailing list