<div class="gmail_quote">On 29 November 2010 17:43, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Nov 29, 2010, at 5:28 PM, Nick Lewycky wrote:<br>
<br>
> Author: nicholas<br>
> Date: Mon Nov 29 19:28:32 2010<br>
> New Revision: 120376<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=120376&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=120376&view=rev</a><br>
> Log:<br>
> Add a default clause to avoid this GCC warning:<br>
> Type.cpp:1000: warning: control reaches end of non-void function<br>
<br>
</div>You and dgregor are fighting about this very slowly. :)<br>
<br>
Please use llvm_unreachable and a return 0 instead of adding a default case to a supposedly exhaustive switch.</blockquote><div><br></div><div>Sorry about that, I didn't notice. I was just copying the style from the function directly above it, Type::getTypeClassName().</div>
<div><br></div><div>Nick</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><br>
John.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br>