A call after a patchpoint will cause the patchpoint to implicitly have SSP as liveout. SSP doesn't have a DWARF regnum or a register class, so we blow up in getDwarfRegNum().
Guard this by only trying to emit stackmap information for allocatable registers.
Disclaimer: I know nothing about LLVM's StackMap implementation.
Is it safe to just ignore it here? In CodeGen/AsmPrinter/DwarfExpression.cpp we have code to compose a register without a Dwarf number out of sub- or super-registers.