[llvm] [offload] fix invalid symbol handling in l0 plugin (PR #189442)

Ɓukasz Plewa via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 09:13:33 PDT 2026


================
@@ -71,6 +71,10 @@ Error L0KernelTy::buildKernel(L0ProgramTy &Program) {
   const auto *KernelName = getName();
 
   auto Module = Program.findModuleFromKernelName(KernelName);
+  if (!Module)
+    return Plugin::error(ErrorCode::NOT_FOUND,
+                         "kernel '%s' is not found in the program", KernelName);
----------------
lplewa wrote:

Done

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


More information about the llvm-commits mailing list