Fix of another bug showing up only with LLVM in debug mode: splitting a malformed basic block is not allowed, and we had a function call after a `ret` instruction.