Hacker News new | ask | show | jobs
by charlie90 221 days ago
How common is this in practice?
1 comments

Compilers regularly delete null pointer checks when they can see that the pointer is dereferenced.
(GCC controls this with `-fno-delete-null-pointer-checks` https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#ind... )