Fix PR3754: don't mark functions that wrap MallocInst with
authorDuncan Sands <baldrick@free.fr>
Wed, 6 May 2009 08:42:00 +0000 (08:42 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 6 May 2009 08:42:00 +0000 (08:42 +0000)
commitcfd0ebea276521a48370c197e651064b032a381e
tree6d6d8f9492a95f79c57e687c3725ccb7da65678d
parentd8d27f4a4b9461aee581217691d896d4eba985fa
Fix PR3754: don't mark functions that wrap MallocInst with
the readnone.  Since MallocInst is scheduled for deletion
it doesn't seem worth doing anything more subtle, such as
having mayWriteToMemory return true for MallocInst.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71077 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/2009-05-06-Malloc.ll [new file with mode: 0644]