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

llvm-svn: 174808
This commit is contained in:
Justin Holewinski 2013-02-09 13:34:15 +00:00
parent bef117fed5
commit 36a50991e7
1 changed files with 2 additions and 1 deletions

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;
}
}