3 ms·
>I was curious if the compiler will optimize in the short circuit even if you extract the eagerly It will optimize, but not necessarily what you wanted... Beca
by garaetjjte 4y ago
>I was curious if the compiler will optimize in the short circuit even if you extract the eagerly
It will optimize, but not necessarily what you wanted... Because null dereference is UB (with default compiler flags), it's allowed to elide null check.