diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-28 20:18:55 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-28 20:18:55 +0000 |
commit | 0d025421cd6a89bb355136ce9700d391fa7b3c9c (patch) | |
tree | b8ac013616e54c56666e2874f320b5ed76f535a0 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d264ee0cbaf5baca72a4aa66956b5bbe88f28cfd (diff) | |
download | bcm5719-llvm-0d025421cd6a89bb355136ce9700d391fa7b3c9c.tar.gz bcm5719-llvm-0d025421cd6a89bb355136ce9700d391fa7b3c9c.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions