diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:23:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-27 21:23:38 +0000 |
commit | a8627272c1d12c35621b8d0ce570299bf20fc7f8 (patch) | |
tree | 4932eaedfd2a400b61333bb3619c4ee066f6ae89 | |
parent | 351a7ef01ab58e6375dc90adb7aa61ae760abffe (diff) | |
download | bcm5719-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
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
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; |