<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">We generally prefer llvm_unreachable to assert(0)</div></blockquote><div><br></div>
<div>we do (specifically just clang, or llvm as a whole)? I've seen some variation in this & when someone was fixing up the assert("foo")s in the code to assert(0 && "foo")s a week or two ago I thought about suggesting they be llvm_unreachables instead, but when I searched I think I found an email by Chris Lattner saying that assert(0 && "foo") was preferred (I can see if I can find it again).<br>
<br>Is there some consistent policy/documentation on this?</div><div><br></div><div>- David</div></div><br>