3 ms·
Compilers regularly delete null pointer checks when they can see that the pointer is dereferenced.
by adrianN 1y ago
Compilers regularly delete null pointer checks when they can see that the pointer is dereferenced.
- Smaug123 1y ago(GCC controls this with `-fno-delete-null-pointer-checks` https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fdelete-null-pointer-checks https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#ind... )