[llvm] r180087 - Add llvm_unreachable after fully covered switch to pacify GCC
Alexey Samsonov
samsonov at google.com
Tue Apr 23 03:21:40 PDT 2013
Thanks!
On Tue, Apr 23, 2013 at 2:12 PM, Hans Wennborg <hans at hanshq.net> wrote:
> 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) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
--
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130423/9b4e78f1/attachment.html>
More information about the llvm-commits
mailing list