[llvm] [flang][cuda] Fix unittest (PR #150136)
Valentin Clement バレンタイン クレメン via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 15:55:12 PDT 2025
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/150136
Fix building issue reported on #148717
>From 1a8997b94bd7714d7002d06eb3296bd15d977b14 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Clement=20=28=E3=83=90=E3=83=AC=E3=83=B3?=
=?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=B3=20=E3=82=AF=E3=83=AC=E3=83=A1?=
=?UTF-8?q?=E3=83=B3=29?= <clementval at gmail.com>
Date: Wed, 23 Jul 2025 07:54:44 +0900
Subject: [PATCH] [flang][cuda] Fix unittest
Fix building issue reported on #148717
---
flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp b/flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp
index 83aa37f8d06f3..d76fca2c4250e 100644
--- a/flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp
+++ b/flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp
@@ -79,6 +79,6 @@ TEST(AllocatableCUFTest, CUFSetAllocatorIndex) {
// REAL(4), DEVICE, ALLOCATABLE :: a(:)
auto a{createAllocatable(TypeCategory::Real, 4)};
EXPECT_EQ((int)kDefaultAllocator, a->GetAllocIdx());
- RTNAME(CUFSetAllocatorIndex)(*a, kDeviceAllocatorPos, __FILE__, __LINE__);
+ RTNAME(CUFSetAllocatorIndex)(a, kDeviceAllocatorPos, __FILE__, __LINE__);
EXPECT_EQ((int)kDeviceAllocatorPos, a->GetAllocIdx());
}
More information about the llvm-commits
mailing list