[cfe-commits] r120376 - /cfe/trunk/lib/AST/Type.cpp
Nick Lewycky
nlewycky at google.com
Mon Nov 29 23:52:10 PST 2010
On 29 November 2010 17:43, John McCall <rjmccall at apple.com> wrote:
>
> On Nov 29, 2010, at 5:28 PM, Nick Lewycky wrote:
>
> > Author: nicholas
> > Date: Mon Nov 29 19:28:32 2010
> > New Revision: 120376
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=120376&view=rev
> > Log:
> > Add a default clause to avoid this GCC warning:
> > Type.cpp:1000: warning: control reaches end of non-void function
>
> You and dgregor are fighting about this very slowly. :)
>
> Please use llvm_unreachable and a return 0 instead of adding a default case
> to a supposedly exhaustive switch.
Sorry about that, I didn't notice. I was just copying the style from the
function directly above it, Type::getTypeClassName().
Nick
>
> John.
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101129/ff7ee199/attachment.html>
More information about the cfe-commits
mailing list