[cfe-commits] r120376 - /cfe/trunk/lib/AST/Type.cpp
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().
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits