[llvm] [Offload] Fix type mismatch warning in test (PR #143700)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 11 06:22:51 PDT 2025
https://github.com/RossBrunton created https://github.com/llvm/llvm-project/pull/143700
None
>From dcb863ce457068f24a6cbcb63408e231e7095952 Mon Sep 17 00:00:00 2001
From: Ross Brunton <ross at codeplay.com>
Date: Wed, 11 Jun 2025 14:17:11 +0100
Subject: [PATCH] [Offload] Fix type mismatch warning in test
---
offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the llvm-commits
mailing list