[llvm] [flang][cuda] Fix unittest (PR #150136)

Valentin Clement バレンタイン クレメン via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 03:49:24 PDT 2025


================
@@ -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__);
----------------
clementval wrote:

You are correct. This is how we use it in the Memory.cpp unit tests. 

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

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


More information about the llvm-commits mailing list