[llvm] [SPIRV] Fix global emission for modules with no functions (PR #183833)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 03:54:13 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()
----------------
jmmartinez wrote:
This should be done in a separate PR.
https://github.com/llvm/llvm-project/pull/183833
More information about the llvm-commits
mailing list