[llvm] r174808 - [NVPTX] Make address space errors more explicit (llvm_unreachable -> report_fatal_error)
Justin Holewinski
jholewinski at nvidia.com
Sat Feb 9 05:34:16 PST 2013
Author: jholewinski
Date: Sat Feb 9 07:34:15 2013
New Revision: 174808
URL: http://llvm.org/viewvc/llvm-project?rev=174808&view=rev
Log:
[NVPTX] Make address space errors more explicit (llvm_unreachable -> report_fatal_error)
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=174808&r1=174807&r2=174808&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Sat Feb 9 07:34:15 2013
@@ -1314,7 +1314,8 @@ void NVPTXAsmPrinter::emitPTXAddressSpac
O << "shared" ;
break;
default:
- llvm_unreachable("unexpected address space");
+ report_fatal_error("Bad address space found while emitting PTX");
+ break;
}
}
More information about the llvm-commits
mailing list