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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 08:39:47 PDT 2019


xbolva00 added a comment.

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 :)


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

https://reviews.llvm.org/D67679





More information about the llvm-commits mailing list