<div dir="ltr">Good to know, I will fix that then!<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 11:18 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Sep 5, 2013 at 7:15 PM, Virgile Bello <<a href="mailto:virgile.bello@gmail.com" target="_blank">virgile.bello@gmail.com</a>> wrote:<br>



> Problem is not runtime but compile time. In MSVC, such a code doesn't<br>
> compile:<br>
><br>
> int test() {  assert(false); }<br>
> error C4716: 'test' : must return a value<br>
><br>
> So from what I understood of llvm_unreachable, it woulnd't help either since<br>
> it's just a replacement of assert that also doesn't return anything.<br>
<br>
</div>Unlike assert, llvm_unreachable is a function marked with a noreturn attribute.<br>
<div><div><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div></div>