[cfe-dev] [LLVMdev] [patch] Change llvm_unreachable to use __builtin_unreachable() in -asserts

NAKAMURA Takumi geek4civic at gmail.com
Sat Mar 12 03:05:42 PST 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?

...Takumi(fine)




More information about the cfe-dev mailing list