instcombine shouldn't delete all null checks for mallocs.
authorChris Lattner <sabre@nondot.org>
Mon, 5 Oct 2009 02:47:47 +0000 (02:47 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Oct 2009 02:47:47 +0000 (02:47 +0000)
commitbbc33853a5b0a84e2f45d74b5549eee4d87d0e42
tree59a412589d9db5f20fdb01d381e5611a71ee743e
parent92bef66c100cd7515b81473de8e8579b142f0c66
instcombine shouldn't delete all null checks for mallocs.
This fixes PR5130.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83290 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/badmalloc.ll [new file with mode: 0644]