Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it redundant. Removing the isMalloc() check.

llvm-svn: 84541
This commit is contained in:
Victor Hernandez 2009-10-19 21:47:22 +00:00
parent e3796a0fee
commit 5c704d505c
1 changed files with 0 additions and 2 deletions

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