Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it...
authorVictor Hernandez <vhernandez@apple.com>
Mon, 19 Oct 2009 21:47:22 +0000 (21:47 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Mon, 19 Oct 2009 21:47:22 +0000 (21:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionAttrs.cpp

index 563d594c7b0c3bc8620866be3ad1774c4077fa9a..0701b94c58e8880a70c122735b6468987eebec98 100644 (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))