diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-19 21:47:22 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-19 21:47:22 +0000 |
commit | 93bb60d3793e6354866e2820a030f3baebb55a38 (patch) | |
tree | d74f8c84090c3d39b30a12be5249753786788fa7 /lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | 83e43ca1b65c18afa3afd596938f9ff05e1084f9 (diff) |
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/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 563d594c7b..0701b94c58 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)) |