diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-04-23 10:12:16 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-04-23 10:12:16 +0000 |
commit | ab4d569f2841beaf6152179b1f4da6b7e0f3530e (patch) | |
tree | a3cfc99339c4f14192f060b1653a82357f362a4d | |
parent | a0bd5df0867e054b9740bc734325cdeabfe3825a (diff) | |
download | external_llvm-ab4d569f2841beaf6152179b1f4da6b7e0f3530e.zip external_llvm-ab4d569f2841beaf6152179b1f4da6b7e0f3530e.tar.gz external_llvm-ab4d569f2841beaf6152179b1f4da6b7e0f3530e.tar.bz2 |
Add llvm_unreachable after fully covered switch to pacify GCC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Support/Compression.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Compression.cpp b/lib/Support/Compression.cpp index 497b17e..f22d3db 100644 --- a/lib/Support/Compression.cpp +++ b/lib/Support/Compression.cpp @@ -31,6 +31,7 @@ static int encodeZlibCompressionLevel(zlib::CompressionLevel Level) { case zlib::DefaultCompression: return Z_DEFAULT_COMPRESSION; case zlib::BestSizeCompression: return 9; } + llvm_unreachable("Invalid zlib::CompressionLevel!"); } static zlib::Status encodeZlibReturnValue(int ReturnValue) { |