forked from OSchip/llvm-project
unlike the malloc instruction, "malloc" calls do not claim to be readonly, just nounwind.
llvm-svn: 82927
This commit is contained in:
parent
351a7ef01a
commit
a8627272c1
|
@ -153,7 +153,7 @@ bool FunctionAttrs::AddReadAttrs(const std::vector<CallGraphNode *> &SCC) {
|
||||||
// Writes memory. Just give up.
|
// Writes memory. Just give up.
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (isa<MallocInst>(I) || isMalloc(I))
|
if (isa<MallocInst>(I))
|
||||||
// malloc claims not to write memory! PR3754.
|
// malloc claims not to write memory! PR3754.
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue