[NVPTX] Make address space errors more explicit (llvm_unreachable -> report_fatal_error)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Justin Holewinski 2013-02-09 13:34:15 +00:00
parent 5c2a079d3c
commit 00d9da1ac4

View File

@ -1314,7 +1314,8 @@ void NVPTXAsmPrinter::emitPTXAddressSpace(unsigned int AddressSpace,
O << "shared" ;
break;
default:
llvm_unreachable("unexpected address space");
report_fatal_error("Bad address space found while emitting PTX");
break;
}
}