Validate the return type when checking if a function is malloc.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Nov 2011 17:58:47 +0000 (17:58 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Nov 2011 17:58:47 +0000 (17:58 +0000)
commit1db1c239fe1654f174fbddd70e104909d2ad5f5c
tree645d614f0e81fa19f18c1d204f8e9ccffe4dba75
parenta8f5cd3539580b2fe3c20c748c1374f76992f113
Validate the return type when checking if a function is malloc.

Fixes PR11426. Not sure if a test case with a "wrong" malloc would be useful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145106 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryBuiltins.cpp