summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-28 20:18:55 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-28 20:18:55 +0000
commit0d025421cd6a89bb355136ce9700d391fa7b3c9c (patch)
treeb8ac013616e54c56666e2874f320b5ed76f535a0 /clang/lib/CodeGen/CodeGenFunction.cpp
parentd264ee0cbaf5baca72a4aa66956b5bbe88f28cfd (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud