[Lldb-commits] [lldb] r190069 - OptionValueProperties::DeepCopy (): return empty value to avoid compilation error on MSVC (even if assert).

Dmitri Gribenko gribozavr at gmail.com
Thu Sep 5 19:18:47 PDT 2013

On Thu, Sep 5, 2013 at 7:15 PM, Virgile Bello <virgile.bello at gmail.com> wrote:
> Problem is not runtime but compile time. In MSVC, such a code doesn't
> compile:
> int test() {  assert(false); }
> error C4716: 'test' : must return a value
> So from what I understood of llvm_unreachable, it woulnd't help either since
> it's just a replacement of assert that also doesn't return anything.

Unlike assert, llvm_unreachable is a function marked with a noreturn attribute.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the lldb-commits mailing list