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
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