[llvm-commits] [llvm] r158919 - in /llvm/trunk: include/llvm/Analysis/MemoryBuiltins.h lib/Analysis/BasicAliasAnalysis.cpp lib/Analysis/IPA/GlobalsModRef.cpp lib/Analysis/MemoryBuiltins.cpp lib/Analysis/MemoryDependenceAnalysis.cpp lib/Transforms

Chandler Carruth chandlerc at google.com
Thu Jun 21 10:09:29 PDT 2012


> +static const AllocFnsTy AllocationFnData[] = {
> +  {"malloc",         MallocLike,  1, 0,  -1},
> +  {"valloc",         MallocLike,  1, 0,  -1},
> +  {"_Znwj",          MallocLike,  1, 0,  -1}, // operator new(unsigned
> int)
> +  {"_Znwm",          MallocLike,  1, 0,  -1}, // operator new(unsigned
> long)
> +  {"_Znaj",          MallocLike,  1, 0,  -1}, // operator new[](unsigned
> int)
> +  {"_Znam",          MallocLike,  1, 0,  -1}, // operator new[](unsigned
> long)
> +  {"posix_memalign", MallocLike,  3, 2,  -1},
> +  {"calloc",         CallocLike,  2, 0,  1},
> +  {"realloc",        ReallocLike, 2, 1,  -1},
> +  {"reallocf",       ReallocLike, 2, 1,  -1},
> +  {"strdup",         StrDupLike,  1, -1, -1},
> +  {"strndup",        StrDupLike,  2, -1, -1}
>

FYI, this causes narrowing conversion errors in C++11 mode.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120621/0155047c/attachment.html>


More information about the llvm-commits mailing list