From 2a9325ff2fc21d8c9873b999cb9ebe2bc6b6f1a1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Sep 2009 21:23:38 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/FunctionAttrs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 14c94da5595..58cc909a86c 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/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;