For PR21145: recognise a builtin call to a known deallocation function even if
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 15 Jan 2015 01:00:33 +0000 (01:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 15 Jan 2015 01:00:33 +0000 (01:00 +0000)
commitef7d38d35a19eba99bd37dc6ac92b8a147fb0e97
tree0767edd78ba2deeb28253626f6ef8d6b1f93d79d
parent32467012f6db74b0c37f8181ac7c18092b3ad243
For PR21145: recognise a builtin call to a known deallocation function even if
it's defined in the current module. Clang generates this situation for the
C++14 sized deallocation functions, because it generates a weak definition in
case one isn't provided by the C++ runtime library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226069 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryBuiltins.cpp
test/Transforms/InstCombine/malloc-free-delete.ll