[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


================
@@ -995,7 +995,7 @@ static void processBlockAddr(MachineFunction &MF, SPIRVGlobalRegistry *GR,
 
 static bool isImplicitFallthrough(MachineBasicBlock &MBB) {
   if (MBB.empty())
-    return true;
+    return MBB.getNextNode() != nullptr;
----------------
jmmartinez wrote:

This one too, could we move this to another PR ?

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


More information about the llvm-commits mailing list