HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by charlie90 | Hacker News Reader
Parent
Full thread
charlie90
·
How common is this in practice?
View on HN
adrianN
·
Compilers regularly delete null pointer checks when they can see that the pointer is dereferenced.
Smaug123
·
(GCC controls this with `-fno-delete-null-pointer-checks`
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#ind...
)
Reply on news.ycombinator.com