[PATCH] D67679: [SLC] Convert some strndup calls to strdup calls

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 23:49:15 PDT 2019


jdoerfert added a comment.

In D67679#1674025 <https://reviews.llvm.org/D67679#1674025>, @xbolva00 wrote:

> Multiple reasons
>
> 1. If we can fold it to strdup, we should (strndup does more things than strdup).
> 2. Annotation mechanism. (Works for strdup well).
>
>   p.s: strdup and strndup are part of C 20 :)


Put this in the commit message. I missed that it was empty, thanks @lebedev.ri.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67679/new/

https://reviews.llvm.org/D67679





More information about the llvm-commits mailing list