1
0
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:
Victor Hernandez 2009-10-19 21:47:22 +00:00
parent 4b35be3f3b
commit a666c49572

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