summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2018-02-08 00:50:04 +0000
committerJustin Lebar <jlebar@google.com>2018-02-08 00:50:04 +0000
commit321b443ef6bde4edd73a4bb621e8d35cf2ed627d (patch)
tree7d8bf27dc61ea79b6e94b5b49edf6ef2c18c9447 /llvm/lib/Target
parent8d1f53a78df8f3d84ddfa140cfdae7e039524319 (diff)
downloadbcm5719-llvm-321b443ef6bde4edd73a4bb621e8d35cf2ed627d.tar.gz
bcm5719-llvm-321b443ef6bde4edd73a4bb621e8d35cf2ed627d.zip
[NVPTX] When dying due to a bad address space value, print out the value.
llvm-svn: 324549
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
index 753cfff4cda..fb492ece849 100644
--- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
@@ -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;
}
}
OpenPOWER on IntegriCloud