c++ new operators are not malloc-like functions because they do not return uninitiali...
authorNadav Rotem <nrotem@apple.com>
Mon, 8 Apr 2013 23:40:47 +0000 (23:40 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 8 Apr 2013 23:40:47 +0000 (23:40 +0000)
commit0a9b452aa457ef911e5a6c327ae4b5596df55bca
treeff84949c98e33016a8cb4e395f3106158ad62bba
parent92c3742319cc219f8a57aa7d8eea5b17ec93ad06
c++ new operators are not malloc-like functions because they do not return uninitialized memory.
Users may overide new-operators and implement any function that they like.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179071 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryBuiltins.cpp
test/Transforms/GVN/newoperator.ll [new file with mode: 0644]
test/Transforms/InstCombine/invoke.ll
test/Transforms/InstCombine/objsize-64.ll