[llvm] [Offload] Fix the wrong signature of `main` function in two tools (PR #99733)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 20:01:27 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-offload
Author: Shilei Tian (shiltian)
<details>
<summary>Changes</summary>
Fix #<!-- -->92845.
---
Full diff: https://github.com/llvm/llvm-project/pull/99733.diff
2 Files Affected:
- (modified) offload/tools/deviceinfo/llvm-omp-device-info.cpp (+1-1)
- (modified) offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp (+1-1)
``````````diff
diff --git a/offload/tools/deviceinfo/llvm-omp-device-info.cpp b/offload/tools/deviceinfo/llvm-omp-device-info.cpp
index 7dd22aec9828f..764aa0e3b3c83 100644
--- a/offload/tools/deviceinfo/llvm-omp-device-info.cpp
+++ b/offload/tools/deviceinfo/llvm-omp-device-info.cpp
@@ -14,7 +14,7 @@
#include "omptarget.h"
#include <cstdio>
-int main(int argc, char **argv) {
+int main(int argc, char *argv[]) {
__tgt_bin_desc EmptyDesc = {0, nullptr, nullptr, nullptr};
__tgt_register_lib(&EmptyDesc);
__tgt_init_all_rtls();
diff --git a/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
index 1e9a6a84d8058..966b4288bca4a 100644
--- a/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
+++ b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
@@ -50,7 +50,7 @@ static cl::opt<unsigned> NumThreadsOpt("num-threads",
static cl::opt<int32_t> DeviceIdOpt("device-id", cl::desc("Set the device id."),
cl::init(-1), cl::cat(ReplayOptions));
-int main(int argc, char **argv) {
+int main(int argc, char *argv[]) {
cl::HideUnrelatedOptions(ReplayOptions);
cl::ParseCommandLineOptions(argc, argv, "llvm-omp-kernel-replay\n");
``````````
</details>
https://github.com/llvm/llvm-project/pull/99733
More information about the llvm-commits
mailing list