Moved llvm_unreachable out of switch blocks to avoid the "control reaches end of non-void function" warning.