[NVPTX] When dying due to a bad address space value, print out the value.

llvm-svn: 324549
This commit is contained in:
Justin Lebar 2018-02-08 00:50:04 +00:00
parent 8d1f53a78d
commit 321b443ef6
1 changed files with 2 additions and 1 deletions

View File

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