[PATCH] D50039: [LibCalls] Added nonnull atribute to libc function args

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 28 01:51:30 PDT 2018


xbolva00 added a comment.

Since we are gonna mark args as nonull at the callsites, we can be more precisice since we know if "size" arg if constant.

e.g.
strncmp(d,s, 10) - we can mark even "s" as nonnull, right?


https://reviews.llvm.org/D50039





More information about the llvm-commits mailing list