unlike the malloc instruction, "malloc" calls do not claim to be readonly, just nounwind.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-09-27 21:23:38 +00:00
parent ebb89b4186
commit 2a9325ff2f

View File

@ -153,7 +153,7 @@ bool FunctionAttrs::AddReadAttrs(const std::vector<CallGraphNode *> &SCC) {
// Writes memory. Just give up.
return false;
if (isa<MallocInst>(I) || isMalloc(I))
if (isa<MallocInst>(I))
// malloc claims not to write memory! PR3754.
return false;