From aca53a753fb9192902fb89664ad5eac185b05c93 Mon Sep 17 00:00:00 2001 From: "Cyganik, Karol" Date: Wed, 21 Jun 2023 09:34:28 +0000 Subject: [PATCH] Emit SLM offset to DWARF This fix introduces emitting correct SLM offset to DWARF --- IGC/Compiler/DebugInfo/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IGC/Compiler/DebugInfo/Utils.cpp b/IGC/Compiler/DebugInfo/Utils.cpp index 507eede2cfbb..b4f1500cf3f6 100644 --- a/IGC/Compiler/DebugInfo/Utils.cpp +++ b/IGC/Compiler/DebugInfo/Utils.cpp @@ -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(scopeToUse) || llvm::isa(scopeToUse)) {