tvanslyke added a comment.

I think the only thing we need is a call to __set_long_cap(0) in the body of 
the if() to make the string be in a valid state, but if you follow the logic 
for a call to reserve(0) (after having called clear()) it doesn't even end up 
doing that (unless I'm missing something).  I definitely have no problem adding 
the __set_long_cap(0) call to the diff.


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