diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-24 17:15:14 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-24 17:15:14 +0000 |
commit | 989779ccc746eb7d7ab4774f25d7a3e1be14923e (patch) | |
tree | 42069618e091c6a3298117623a16c4514cb5a512 /lib | |
parent | b0dfceec2282d4af1e87042f1db8ed51c5330132 (diff) | |
download | external_llvm-989779ccc746eb7d7ab4774f25d7a3e1be14923e.tar.gz external_llvm-989779ccc746eb7d7ab4774f25d7a3e1be14923e.tar.bz2 external_llvm-989779ccc746eb7d7ab4774f25d7a3e1be14923e.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/MemoryBuiltins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index 2ec2aec4aa..b904cb188c 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -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 { |