tvanslyke added a comment.

Just to elaborate, in `reserve(0)` after the deallocation there's a check `if 
(__now_long)` which takes the else branch and only ends up calling 
`__set_short_size(__sz); // __sz = 0 here`.  So even without this diff the only 
thing `reserve(0)` does after deallocating is set the short size to zero, but 
it already is zero (because of the call to `clear()`).


https://reviews.llvm.org/D41976



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to