Skip to content

Commit

Permalink
Emit SLM offset to DWARF
Browse files Browse the repository at this point in the history
This fix introduces emitting correct SLM offset to DWARF
  • Loading branch information
kcyganik1 authored and igcbot committed Jun 21, 2023
1 parent 1a739c9 commit aca53a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/Compiler/DebugInfo/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace Utils {
IGCLLVM::DIBuilder Builder(M);
llvm::DIGlobalVariable* GV = GVs[j]->getVariable();
llvm::DIScope* scopeToUse = GV->getScope();
llvm::DILocation* locToUse = llvm::DILocation::get(scopeToUse->getContext(), GV->getLine(), 0, scopeToUse, loc);
llvm::DILocation* locToUse = llvm::DILocation::get(scopeToUse->getContext(), GV->getLine(), 0, scopeToUse, nullptr);
if (llvm::isa<llvm::DICompileUnit>(scopeToUse) ||
llvm::isa<llvm::DINamespace>(scopeToUse))
{
Expand Down

0 comments on commit aca53a7

Please sign in to comment.