OSDN Git Service

If new[] fails, return 0 rather then trying to dereference a null pointer.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 13 Feb 2009 07:54:34 +0000 (07:54 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 13 Feb 2009 07:54:34 +0000 (07:54 +0000)
commit726135ad1afe27af5f36a893eb55435b85d389a9
tree3e8b423551c1e1db5d34fd8071a59beb103e8dda
parent8968a0776801c5662863b3a461550aa361f69ba3
If new[] fails, return 0 rather then trying to dereference a null pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/MemoryBuffer.cpp