[llvm] [OFFLOAD] Fix typo in assert (PR #152316)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 07:56:32 PDT 2025


https://github.com/adurang created https://github.com/llvm/llvm-project/pull/152316

None

>From 96178ccab9e702c45b312b52f2e45cea4ee9f0d1 Mon Sep 17 00:00:00 2001
From: Alex Duran <alejandro.duran at intel.com>
Date: Wed, 6 Aug 2025 16:54:53 +0200
Subject: [PATCH] [OFFLOAD] Fix typo in assert

---
 offload/plugins-nextgen/common/src/PluginInterface.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offload/plugins-nextgen/common/src/PluginInterface.cpp b/offload/plugins-nextgen/common/src/PluginInterface.cpp
index 0a7f9fa5970ee..ed79af909674e 100644
--- a/offload/plugins-nextgen/common/src/PluginInterface.cpp
+++ b/offload/plugins-nextgen/common/src/PluginInterface.cpp
@@ -2251,7 +2251,7 @@ GenericPluginTy::create_interop(int32_t ID, int32_t InteropContext,
 int32_t GenericPluginTy::release_interop(int32_t ID,
                                          omp_interop_val_t *Interop) {
   assert(Interop && "Interop is null");
-  assert(Interop->DeviceId == ID && "Interop does not match device id");
+  assert(Interop->device_id == ID && "Interop does not match device id");
   auto &Device = getDevice(ID);
   auto Err = Device.releaseInterop(Interop);
   if (Err) {



More information about the llvm-commits mailing list