| commit | 0d025421cd6a89bb355136ce9700d391fa7b3c9c | [log] [tgz] |
|---|---|---|
| author | Victor Hernandez <vhernandez@apple.com> | Wed Oct 28 20:18:55 2009 +0000 |
| committer | Victor Hernandez <vhernandez@apple.com> | Wed Oct 28 20:18:55 2009 +0000 |
| tree | b8ac013616e54c56666e2874f320b5ed76f535a0 | |
| parent | d264ee0cbaf5baca72a4aa66956b5bbe88f28cfd [diff] |
Extend getMallocArraySize() to determine the array size if the malloc argument is: ArraySize * ElementSize ElementSize * ArraySize ArraySize << log2(ElementSize) ElementSize << log2(ArraySize) Refactor isArrayMallocHelper and delete isSafeToGetMallocArraySize, so that there is only 1 copy of the malloc array determining logic. Update users of getMallocArraySize() to not bother calling isArrayMalloc() as well. llvm-svn: 85421