top | item 46139417

(no title)

flqn | 2 months ago

Since the optimiser is allowed to assume you're not invoking UB, and strlen of null is UB, I don't believe that it would consider that case when optimising this function.

discuss

order

WalterBright|2 months ago

I understand that, but I don't agree that such optimizer behavior is worth it and I won't put it in my compilers.

kragen|2 months ago

I appreciate that greatly.