forked from OSchip/llvm-project
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:
parent
e3796a0fee
commit
5c704d505c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue