[llvm] [Offload] Fix type mismatch warning in test (PR #143700)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 06:23:25 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: Ross Brunton (RossBrunton)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/143700.diff


1 Files Affected:

- (modified) offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp (+1-1) 


``````````diff
diff --git a/offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp b/offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
index d466799c1acaa..b08b220683655 100644
--- a/offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
+++ b/offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
@@ -71,7 +71,7 @@ TEST_P(olLaunchKernelTest, Success) {
   ASSERT_SUCCESS(olWaitQueue(Queue));
 
   uint32_t *Data = (uint32_t *)Mem;
-  for (int i = 0; i < 64; i++) {
+  for (uint32_t i = 0; i < 64; i++) {
     ASSERT_EQ(Data[i], i);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/143700


More information about the llvm-commits mailing list