summaryrefslogtreecommitdiff
path: root/offload/plugins-nextgen/common/include/PluginInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'offload/plugins-nextgen/common/include/PluginInterface.h')
-rw-r--r--offload/plugins-nextgen/common/include/PluginInterface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/offload/plugins-nextgen/common/include/PluginInterface.h b/offload/plugins-nextgen/common/include/PluginInterface.h
index fbc798faec24..b5addc13d664 100644
--- a/offload/plugins-nextgen/common/include/PluginInterface.h
+++ b/offload/plugins-nextgen/common/include/PluginInterface.h
@@ -317,7 +317,7 @@ struct GenericKernelTy {
AsyncInfoWrapperTy &AsyncInfoWrapper) const = 0;
/// Get the kernel name.
- const char *getName() const { return Name; }
+ const char *getName() const { return Name.c_str(); }
/// Get the kernel image.
DeviceImageTy &getImage() const {
@@ -413,7 +413,7 @@ private:
}
/// The kernel name.
- const char *Name;
+ std::string Name;
/// The image that contains this kernel.
DeviceImageTy *ImagePtr = nullptr;