[llvm-branch-commits] [llvm] [NFC][SPIRV] Converge different `resolveDebugParentScope` versions into a single one (PR #219925)
Juan Manuel Martinez CaamaƱo via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 1 02:15:35 PDT 2026
================
@@ -878,7 +818,12 @@ std::optional<MCRegister> SPIRVNonSemanticDebugHandler::emitDebugGlobalVariable(
SPIRV::ModuleAnalysisInfo &MAI) {
assert(GV && "GV must not be null in emitDebugGlobalVariable");
- MCRegister ParentReg = resolveGlobalVariableParent(GV);
+ assert(!CompileUnits.empty() &&
+ "emitDebugGlobalVariable requires non-empty CompileUnits");
+ auto ParentRegOpt = resolveScope(GV->getScope());
+ assert(ParentRegOpt && "DebugCompilationUnit must be emitted before "
----------------
jmmartinez wrote:
Fixed!
https://github.com/llvm/llvm-project/pull/219925
More information about the llvm-branch-commits
mailing list