From 93bb60d3793e6354866e2820a030f3baebb55a38 Mon Sep 17 00:00:00 2001 From: Victor Hernandez Date: Mon, 19 Oct 2009 21:47:22 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/FunctionAttrs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 563d594c7b0..0701b94c58e 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))