[llvm] [SPIRV] Fix global emission for modules with no functions (PR #183833)

Nick Sarnie via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 08:48:18 PST 2026


================
@@ -2668,6 +2668,11 @@ static void addMBBNames(const Module &M, const SPIRVInstrInfo &TII,
     MachineFunction *MF = MMI->getMachineFunction(F);
     if (!MF)
       continue;
+    if (MF->getFunction()
----------------
sarnex wrote:

Yep it's https://github.com/llvm/llvm-project/issues/182899 reported by my colleague

https://github.com/llvm/llvm-project/pull/183833


More information about the llvm-commits mailing list