forked from OSchip/llvm-project
[NVPTX] Make address space errors more explicit (llvm_unreachable -> report_fatal_error)
llvm-svn: 174808
This commit is contained in:
parent
bef117fed5
commit
36a50991e7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue