[llvm] [offload] Fix build with debug libomptarget (PR #159144)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 11:13:14 PDT 2025
https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/159144
Currently get this error
```
offload/plugins-nextgen/common/src/PluginInterface.cpp:859:63: error: member reference type 'StringRef' is not a pointer; did you mean to use '.'?
```
>From 12be7ea9558e074801fface427714774212d0f58 Mon Sep 17 00:00:00 2001
From: "Sarnie, Nick" <nick.sarnie at intel.com>
Date: Tue, 16 Sep 2025 11:12:19 -0700
Subject: [PATCH] [offload] Fix build with debug libomptarget
Signed-off-by: Sarnie, Nick <nick.sarnie at intel.com>
---
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 4f83caf7a1187..9b8e49b7ac3e5 100644
--- a/offload/plugins-nextgen/common/src/PluginInterface.cpp
+++ b/offload/plugins-nextgen/common/src/PluginInterface.cpp
@@ -856,7 +856,7 @@ Error GenericDeviceTy::deinit(GenericPluginTy &Plugin) {
}
Expected<DeviceImageTy *> GenericDeviceTy::loadBinary(GenericPluginTy &Plugin,
StringRef InputTgtImage) {
- DP("Load data from image " DPxMOD "\n", DPxPTR(InputTgtImage->ImageStart));
+ DP("Load data from image %s\n", InputTgtImage.str().c_str());
std::unique_ptr<MemoryBuffer> Buffer;
if (identify_magic(InputTgtImage) == file_magic::bitcode) {
More information about the llvm-commits
mailing list