Victor Hernandez
917cf94b22
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
2009-10-28 20:18:55 +00:00
..
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-10-26 22:52:03 +00:00
2009-09-11 18:01:28 +00:00
2009-10-28 07:05:35 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-10-28 20:18:55 +00:00
2009-10-28 07:05:35 +00:00
2009-09-28 21:03:02 +00:00
2009-10-27 05:39:41 +00:00
2009-10-26 22:52:03 +00:00
2009-09-11 18:01:28 +00:00
2009-09-24 18:33:42 +00:00
2009-10-24 23:23:04 +00:00
2009-09-28 00:27:48 +00:00
2009-10-26 22:52:03 +00:00
2009-10-23 17:10:01 +00:00
2009-09-11 18:01:28 +00:00
2009-10-24 23:23:04 +00:00
2009-10-24 23:23:04 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-28 00:27:48 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-21 22:39:35 +00:00
2009-09-14 23:39:10 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:36:27 +00:00
2009-09-11 18:01:28 +00:00
2009-10-20 21:04:26 +00:00
2009-10-13 18:13:05 +00:00
2009-09-26 18:10:13 +00:00
2009-09-11 18:01:28 +00:00
2009-09-11 18:01:28 +00:00
2009-09-09 02:41:50 +00:00
2009-09-11 18:36:27 +00:00
2009-09-11 18:01:28 +00:00