aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-19 21:47:22 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-19 21:47:22 +0000
commit96a4cb23a20b1c7c67bd04759f2a67bf4f289bbd (patch)
treed74f8c84090c3d39b30a12be5249753786788fa7 /lib
parented37b58917e817139e25466c91e36813435fb1f9 (diff)
downloadexternal_llvm-96a4cb23a20b1c7c67bd04759f2a67bf4f289bbd.zip
external_llvm-96a4cb23a20b1c7c67bd04759f2a67bf4f289bbd.tar.gz
external_llvm-96a4cb23a20b1c7c67bd04759f2a67bf4f289bbd.tar.bz2
Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it redundant. Removing the isMalloc() check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp
index 563d594..0701b94 100644
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -269,8 +269,6 @@ bool FunctionAttrs::IsFunctionMallocLike(Function *F,
case Instruction::Alloca:
break;
case Instruction::Call:
- if (isMalloc(RVI))
- break;
case Instruction::Invoke: {
CallSite CS(RVI);
if (CS.paramHasAttr(0, Attribute::NoAlias))