mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
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
4b35be3f3b
commit
a666c49572
@ -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
Block a user