Fixed a few illegal paths with llvm_unreachable. Patch by Cameron McInally.