[llvm] [Offload] Make AMDGPU plugin handle empty allocation properly (PR #142383)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 2 06:13:13 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,c -- offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/test/api/omp_device_memory.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/test/api/omp_device_memory.c b/offload/test/api/omp_device_memory.c
index 8876fc91b..efac80df2 100644
--- a/offload/test/api/omp_device_memory.c
+++ b/offload/test/api/omp_device_memory.c
@@ -1,8 +1,8 @@
// RUN: %libomptarget-compile-run-and-check-generic
+#include <assert.h>
#include <omp.h>
#include <stdio.h>
-#include <assert.h>
int main() {
const int N = 64;
``````````
</details>
https://github.com/llvm/llvm-project/pull/142383
More information about the llvm-commits
mailing list