[llvm-branch-commits] [openmp] a8046f7 - [OpenMP] record-replay use static-cast (#70516)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 31 01:01:10 PDT 2023
Author: Konstantinos Parasyris
Date: 2023-10-31T08:59:04+01:00
New Revision: a8046f72bfb3d0000f9427dd4d2e20d41ab591d7
URL: https://github.com/llvm/llvm-project/commit/a8046f72bfb3d0000f9427dd4d2e20d41ab591d7
DIFF: https://github.com/llvm/llvm-project/commit/a8046f72bfb3d0000f9427dd4d2e20d41ab591d7.diff
LOG: [OpenMP] record-replay use static-cast (#70516)
[OpenMP] Fixes #69905
(cherry picked from commit 01828c4323172db5901ac3e959d52553b2bd74e5)
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 4b4b168acdcc799..ad7c8470fbde60e 100644
--- a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
+++ b/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
@@ -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<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 llvm-branch-commits
mailing list