Skip to content

Commit 3e9f29c

Browse files
authored
[Offload] Store globals in the program's global list rather than the kernel list (#153441)
1 parent d4045a4 commit 3e9f29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ Error olGetSymbol_impl(ol_program_handle_t Program, const char *Name,
765765
return Error::success();
766766
}
767767
case OL_SYMBOL_KIND_GLOBAL_VARIABLE: {
768-
auto &Global = Program->KernelSymbols[Name];
768+
auto &Global = Program->GlobalSymbols[Name];
769769
if (!Global) {
770770
GlobalTy GlobalObj{Name};
771771
if (auto Res =

0 commit comments

Comments
 (0)