commit | 2a9325ff2fc21d8c9873b999cb9ebe2bc6b6f1a1 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Sep 27 21:23:38 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Sep 27 21:23:38 2009 +0000 |
tree | 4fdb78429101f2e76fb23e7f281e70a5ef49fab2 | |
parent | ebb89b418676e5790cb0f385bb6159dd234542ce [diff] [blame] |
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
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 14c94da..58cc909 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -153,7 +153,7 @@ // 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;