[Offload] Store globals in the program's global list rather than the kernel list (#153441)
This commit is contained in:
parent
d4045a448d
commit
3e9f29cfee
@ -765,7 +765,7 @@ Error olGetSymbol_impl(ol_program_handle_t Program, const char *Name,
|
|||||||
return Error::success();
|
return Error::success();
|
||||||
}
|
}
|
||||||
case OL_SYMBOL_KIND_GLOBAL_VARIABLE: {
|
case OL_SYMBOL_KIND_GLOBAL_VARIABLE: {
|
||||||
auto &Global = Program->KernelSymbols[Name];
|
auto &Global = Program->GlobalSymbols[Name];
|
||||||
if (!Global) {
|
if (!Global) {
|
||||||
GlobalTy GlobalObj{Name};
|
GlobalTy GlobalObj{Name};
|
||||||
if (auto Res =
|
if (auto Res =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user