News for hackers. Stuff that matters.
Re:New things in clang land (5.0.0) by masklinn on Thursday December 07, 2017 @06:29AM (#15869198)
> Instead of cramming as much optimization into undefined behavior as you can, maybe don't allow the undefined behavior in the first place?

1. that's what -fsanitize=undefined is for

2. because the code you see here plainly written could also be the result of multiple rounds of previous optimisations (mostly inlining) which ends up leaving a bunch of redundant or nonsensical null checks

Re:New things in clang land (5.0.0) by Sean1708 on Thursday December 07, 2017 @09:08AM (#15870041)
I think clang-tidy can also do some UB checks without having to run the program.