[Openmp-commits] [openmp] 01828c4 - [OpenMP] record-replay use static-cast (#70516)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 27 16:46:38 PDT 2023
Author: Konstantinos Parasyris
Date: 2023-10-27T16:46:34-07:00
New Revision: 01828c4323172db5901ac3e959d52553b2bd74e5
URL: https://github.com/llvm/llvm-project/commit/01828c4323172db5901ac3e959d52553b2bd74e5
DIFF: https://github.com/llvm/llvm-project/commit/01828c4323172db5901ac3e959d52553b2bd74e5.diff
LOG: [OpenMP] record-replay use static-cast (#70516)
[OpenMP] Fixes #69905
Added:
Modified:
openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
Removed:
################################################################################
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<ptr
diff _t>(It.getAsInteger().value()));
+ TgtArgOffsets.push_back(static_cast<ptr
diff _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