[Offload] Store globals in the program's global list rather than the kernel list (#153441)

This commit is contained in:
Ross Brunton 2025-08-13 17:18:25 +01:00 committed by GitHub
parent d4045a448d
commit 3e9f29cfee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -765,7 +765,7 @@ Error olGetSymbol_impl(ol_program_handle_t Program, const char *Name,
return Error::success();
}
case OL_SYMBOL_KIND_GLOBAL_VARIABLE: {
auto &Global = Program->KernelSymbols[Name];
auto &Global = Program->GlobalSymbols[Name];
if (!Global) {
GlobalTy GlobalObj{Name};
if (auto Res =