Good to know, I will fix that then!
On Fri, Sep 6, 2013 at 11:18 AM, Dmitri Gribenko <[email protected]>wrote: > On Thu, Sep 5, 2013 at 7:15 PM, Virgile Bello <[email protected]> > 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. > > Dmitri > > -- > main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if > (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/ >
_______________________________________________ lldb-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
