<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><div><div class="h5"><div>Like the comment says, llvm_unreachable() should be used in lieu of assert (0).  Otherwise, assert (cond && "msg") should be used for code that is expected to execute.</div>
</div></div></div></div></blockquote><div><br></div><div>Right - but in this case the code could be either. It's not a question of assert(0) versus llvm_unreachable - in which case I'd favor the latter, certainly. It's a question of assert(cond && "msg") and (sort of) if (cond) { llvm_unreachable; } (it's not that simple - there's a difference in legibility between the two actual options, etc)</div>
<div><br></div><div>- David</div></div>