Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

LLVM already does this as much as possible. Look at how Clang inserts "ud2" instructions in dead code paths.


Is there a way to use that to address the "NeverCalled" example?

I feel like there's a huge disconnect here. Even after the strange behavior is explained, some people say "wow, I never ever want that behavior, how do I reliably avoid it?" but others respond "there's no problem, you're just using it wrong".

Is there really no way to satisfy both sides?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: