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
This commit is contained in:
Victor Hernandez 2009-10-19 21:47:22 +00:00
parent 83e43ca1b6
commit 93bb60d379

View File

@ -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))