[llvm] r324549 - [NVPTX] When dying due to a bad address space value, print out the value.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 16:50:05 PST 2018
Author: jlebar
Date: Wed Feb 7 16:50:04 2018
New Revision: 324549
URL: http://llvm.org/viewvc/llvm-project?rev=324549&view=rev
Log:
[NVPTX] When dying due to a bad address space value, print out the value.
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp?rev=324549&r1=324548&r2=324549&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Wed Feb 7 16:50:04 2018
@@ -1365,7 +1365,8 @@ void NVPTXAsmPrinter::emitPTXAddressSpac
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;
}
}
More information about the llvm-commits
mailing list