[BuildLibCalls] Remove inaccessiblememonly inference for calloc
authorDávid Bolvanský <david.bolvansky@gmail.com>
Wed, 28 Apr 2021 22:16:57 +0000 (00:16 +0200)
committerDávid Bolvanský <david.bolvansky@gmail.com>
Wed, 28 Apr 2021 22:17:37 +0000 (00:17 +0200)
commite20b32ff3b029f50c7237f49e5e5c97bd47ea540
tree3dc3fb0637a7e30ca1805451cf9a1640080842c1
parentb30521c28a4dc1b94d793385e4144ede5822b2c1
[BuildLibCalls] Remove inaccessiblememonly inference for calloc

Solves regression mentioned in PR50143.

As noted in D101440, proper modelling for calloc would require new attribute inaccessible_or_returned_memonly.
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/test/Transforms/InferFunctionAttrs/annotate.ll