[Analysis] improve function signature checking for calloc
authorSanjay Patel <spatel@rotateright.com>
Fri, 25 Jun 2021 17:19:39 +0000 (13:19 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 27 Jun 2021 12:19:00 +0000 (08:19 -0400)
commit7414bbebc2895a1ac6c87e4ed83a4c3338fe6911
treec44fe539c75ff3f54b0c4d777d768366deddb4e8
parentf45eee270671ec9440766f15e44e74a2118f2d31
[Analysis] improve function signature checking for calloc

This would crash later if we thought the parameters were
valid for the standard library call as shown in:
https://llvm.org/PR50846
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/test/Transforms/InstCombine/calloc-mismatch.ll [new file with mode: 0644]