[llvm] r180087 - Add llvm_unreachable after fully covered switch to pacify GCC
Hans Wennborg
hans at hanshq.net
Tue Apr 23 03:12:16 PDT 2013
Author: hans
Date: Tue Apr 23 05:12:16 2013
New Revision: 180087
URL: http://llvm.org/viewvc/llvm-project?rev=180087&view=rev
Log:
Add llvm_unreachable after fully covered switch to pacify GCC
Modified:
llvm/trunk/lib/Support/Compression.cpp
Modified: llvm/trunk/lib/Support/Compression.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Compression.cpp?rev=180087&r1=180086&r2=180087&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Compression.cpp (original)
+++ llvm/trunk/lib/Support/Compression.cpp Tue Apr 23 05:12:16 2013
@@ -31,6 +31,7 @@ static int encodeZlibCompressionLevel(zl
case zlib::DefaultCompression: return Z_DEFAULT_COMPRESSION;
case zlib::BestSizeCompression: return 9;
}
+ llvm_unreachable("Invalid zlib::CompressionLevel!");
}
static zlib::Status encodeZlibReturnValue(int ReturnValue) {
More information about the llvm-commits
mailing list