mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
MemoryBuiltins: Fix operator new bits.
We really don't want to optimize malloc return value checks away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,9 +35,9 @@ enum AllocType {
|
||||
CallocLike = 1<<1, // allocates + bzero
|
||||
ReallocLike = 1<<2, // reallocates
|
||||
StrDupLike = 1<<3,
|
||||
OpNewLike = MallocLike | (1<<4), // allocates; never returns null
|
||||
AllocLike = MallocLike | CallocLike | StrDupLike,
|
||||
AnyAlloc = MallocLike | CallocLike | ReallocLike | StrDupLike
|
||||
OpNewLike = 1<<4, // allocates; never returns null
|
||||
AllocLike = MallocLike | CallocLike | StrDupLike | OpNewLike,
|
||||
AnyAlloc = AllocLike | ReallocLike
|
||||
};
|
||||
|
||||
struct AllocFnsTy {
|
||||
|
Reference in New Issue
Block a user