[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:04:05 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:

Done and republished for review, thanks.

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


More information about the llvm-commits mailing list