================
@@ -199,7 +199,7 @@ static int initLibrary(DeviceTy &Device) {
                                         Entry.size) != OFFLOAD_SUCCESS)
               REPORT("Failed to write symbol for USM %s\n", Entry.name);
           }
-        } else {
+        } else if (Entry.addr) {
----------------
jhuber6 wrote:

If the address is not-null, then it's a kernel waiting to be registered. It's a 
little hacky but in the current construction a kernel will always have a stub 
address pass in by the compiler. So one of these "requires" entries will have 
the addr be nullptr and the size be zero.

https://github.com/llvm/llvm-project/pull/80460
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to