From a8627272c1d12c35621b8d0ce570299bf20fc7f8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Sep 2009 21:23:38 +0000 Subject: unlike the malloc instruction, "malloc" calls do not claim to be readonly, just nounwind. llvm-svn: 82927 --- llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp') 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 &SCC) { // Writes memory. Just give up. return false; - if (isa(I) || isMalloc(I)) + if (isa(I)) // malloc claims not to write memory! PR3754. return false; -- cgit v1.2.3