Don't treat malloc calls with non-matching prototype as malloc.
authorTorok Edwin <edwintorok@gmail.com>
Mon, 5 Oct 2009 21:15:43 +0000 (21:15 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 5 Oct 2009 21:15:43 +0000 (21:15 +0000)
commit85c005af0d63c484114ce88258aecb8e1c8c2fa2
tree9e5a2ac0739d903e125f24d58ec77a676bb25fdc
parentaa5c1b7f9366950b4cbe710c8426d8589d5d975b
Don't treat malloc calls with non-matching prototype as malloc.
Fixes second part of PR5130, miscompilation in FreeBSD kernel, where malloc takes 3 params,
and *does* initialize memory.

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