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

llvm-svn: 82927
This commit is contained in:
Chris Lattner 2009-09-27 21:23:38 +00:00
parent 351a7ef01a
commit a8627272c1
1 changed files with 1 additions and 1 deletions

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;