mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
83e43ca1b6
commit
93bb60d379
@ -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