[llvm] [Offload] Store kernel name in GenericKernelTy (PR #142799)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 05:00:28 PDT 2025


================
@@ -277,7 +282,7 @@ struct GenericKernelTy {
                            AsyncInfoWrapperTy &AsyncInfoWrapper) const = 0;
 
   /// Get the kernel name.
-  const char *getName() const { return Name; }
+  const char *getName() const { return Name.data(); }
----------------
jhuber6 wrote:

Can we just turn this into a StringRef so we don't need to be paranoid about null termination?

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


More information about the llvm-commits mailing list