Invert isSafeToGetMallocArraySize check because we return NULL when we don't know...
authorVictor Hernandez <vhernandez@apple.com>
Fri, 16 Oct 2009 18:07:17 +0000 (18:07 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Fri, 16 Oct 2009 18:07:17 +0000 (18:07 +0000)
commit3a73bb38ba4ab88f5013bff3fa0584dce2fa9336
treeb2f1a8f292d61b5de858bb87243b7c43cc1b3559
parent7e23d6e8bfd22be7a0d78de424c8abf425dd3cc7
Invert isSafeToGetMallocArraySize check because we return NULL when we don't know the size.

Thanks to Duncan Sands for noticing this bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84260 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll [new file with mode: 0644]