17 #ifndef LLVM_SUPPORT_MEMALLOC_H 18 #define LLVM_SUPPORT_MEMALLOC_H 27 void *Result = std::malloc(Sz);
28 if (Result ==
nullptr)
35 void *Result = std::calloc(Count, Sz);
36 if (Result ==
nullptr)
42 void *Result = std::realloc(Ptr, Sz);
43 if (Result ==
nullptr)
This class represents lattice values for constants.
LLVM_ATTRIBUTE_RETURNS_NONNULL void * safe_realloc(void *Ptr, size_t Sz)
void report_bad_alloc_error(const char *Reason, bool GenCrashDiag=true)
Reports a bad alloc error, calling any user defined bad alloc error handler.
LLVM_ATTRIBUTE_RETURNS_NONNULL void * safe_malloc(size_t Sz)
#define LLVM_ATTRIBUTE_RETURNS_NONNULL
LLVM_ATTRIBUTE_RETURNS_NONNULL void * safe_calloc(size_t Count, size_t Sz)