[llvm] [SPIRV] Fix global emission for modules with no functions (PR #183833)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 07:03:06 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;
----------------
sarnex wrote:
Same issue as other spot which I replied to seperately, will apply same solution here.
https://github.com/llvm/llvm-project/pull/183833
More information about the llvm-commits
mailing list