<div dir="ltr">Problem is not runtime but compile time. In MSVC, such a code doesn't compile:<div><br></div><div>int test() { <span class="" style="white-space:pre">     </span>assert(false); }</div><div>error C4716: 'test' : must return a value<br>

<div><br></div></div><div>So from what I understood of llvm_unreachable, it woulnd't help either since it's just a replacement of assert that also doesn't return anything.</div></div><div class="gmail_extra">
<br>
<br><div class="gmail_quote">On Fri, Sep 6, 2013 at 5:08 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 class="im">On Thu, Sep 5, 2013 at 9:57 AM, Virgile Bello <<a href="mailto:virgile.bello@gmail.com">virgile.bello@gmail.com</a>> wrote:<br>
> Author: xen2<br>
> Date: Thu Sep  5 11:57:48 2013<br>
> New Revision: 190069<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=190069&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=190069&view=rev</a><br>
> Log:<br>
> OptionValueProperties::DeepCopy (): return empty value to avoid compilation error on MSVC (even if assert).<br>
><br>
> Modified:<br>
>     lldb/trunk/source/Interpreter/OptionValueProperties.cpp<br>
><br>
> Modified: lldb/trunk/source/Interpreter/OptionValueProperties.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionValueProperties.cpp?rev=190069&r1=190068&r2=190069&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionValueProperties.cpp?rev=190069&r1=190068&r2=190069&view=diff</a><br>


> ==============================================================================<br>
> --- lldb/trunk/source/Interpreter/OptionValueProperties.cpp (original)<br>
> +++ lldb/trunk/source/Interpreter/OptionValueProperties.cpp Thu Sep  5 11:57:48 2013<br>
> @@ -651,6 +651,7 @@ lldb::OptionValueSP<br>
>  OptionValueProperties::DeepCopy () const<br>
>  {<br>
>      assert(!"this shouldn't happen");<br>
> +    return lldb::OptionValueSP();<br>
>  }<br>
<br>
</div>llvm_unreachable?<br>
<span class="HOEnZb"><font color="#888888"><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">gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br></div>