[cfe-dev] [LLVMdev] [patch] Change llvm_unreachable to use __builtin_unreachable() in -asserts
geek4civic at gmail.com
Sat Mar 12 05:05:42 CST 2011
On Sat, Mar 12, 2011 at 7:47 PM, Sebastian Redl
<sebastian.redl at getdesigned.at> wrote:
>> I have to ask: what is the point of llvm_unreachable? Why not just
>> use assert?
> assert completely disappears in release builds, often leading to compiler warnings when the compiler thinks a control path doesn't return a value.
Shall clang hook and override system's assert() somehow?
More information about the cfe-dev