NoQ added a comment.

> Does llvm_unreachable() guarantee that the string construction code is 
> completely removed from release builds?

http://llvm.org/docs/CodingStandards.html#assert-liberally:

> When assertions are disabled (i.e. in release builds), `llvm_unreachable` 
> becomes a hint to compilers to skip generating code for this branch. If the 
> compiler does not support this, it will fall back to the “abort” 
> implementation.

So i think it's fine. Not sure how much time it saves compared to writing these 
dumps (as a *lot* of places would need those).


https://reviews.llvm.org/D38986



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to