[PATCH] D85345: [BuildLibCalls] Add noundef to standard I/O functions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 9 20:35:13 PDT 2020
jdoerfert added a comment.
In D85345#2205691 <https://reviews.llvm.org/D85345#2205691>, @aqjune wrote:
> If things go well, I'll add noundef to other library functions such as utime, setenv, unsetenv, .... as well.
> For malloc/calloc/realloc/free, I'll think more about them. I guess it is safe to tag noundef to free's operand, but for malloc I'm not 100% sure...
What I think is helpful is the operand of a free and the return value of a {m,c,re}alloc. Arguably, you can give the latter anything but what falls out is better not undef or poison ;)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85345/new/
https://reviews.llvm.org/D85345
More information about the cfe-commits
mailing list