Re:Google broke a conditional statement that verifies passwo...
by ddalex on Friday July 23, 2021 @03:03AM
(#27927996)
I am utterly confused. How would the compiler know that has_value() guarantees that the ->label dereferencing work, since this is a bitwise operation ?
[ Parent
| on HN ]
Re:Google broke a conditional statement that verifies passwo...
by dataflow on Friday July 23, 2021 @03:06AM
(#27928022)
I would imagine has_value is checking to see if a pointer is NULL, and -> is dereferencing that same pointer. When the optimizer sees the two together it realizes the former is useless.