3 ms·
Source? I think you remember it wrong: The compiler will only optimize the if away if you already potentially invoked UB. Like this: val = *ptr; // May be *
by nolist_policy 3y ago
Source? I think you remember it wrong:
The compiler will only optimize the if away if you already potentially invoked UB. Like this:
val = *ptr; // May be *NULL
if (*ptr != NULL) ...