summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-27 21:23:38 +0000
committerChris Lattner <sabre@nondot.org>2009-09-27 21:23:38 +0000
commita8627272c1d12c35621b8d0ce570299bf20fc7f8 (patch)
tree4932eaedfd2a400b61333bb3619c4ee066f6ae89 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp
parent351a7ef01ab58e6375dc90adb7aa61ae760abffe (diff)
downloadbcm5719-llvm-a8627272c1d12c35621b8d0ce570299bf20fc7f8.tar.gz
bcm5719-llvm-a8627272c1d12c35621b8d0ce570299bf20fc7f8.zip
unlike the malloc instruction, "malloc" calls do not claim to be readonly, just nounwind.
llvm-svn: 82927
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 14c94da5595..58cc909a86c 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -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;
OpenPOWER on IntegriCloud