commit | a7f633f522af786e80dc08dbd63e222c9414095b | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Mon Mar 07 01:52:56 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Mon Mar 07 01:52:56 2011 +0000 |
tree | 4ada9ad427b1a0b97bbfd52b6f94745f73d76fad | |
parent | 03fd362dbf6fcd077df566fe2ac3165be668323b [diff] |
An operator new with an empty exception specifier returns null on a bad allocation and therefore requires a null-check. We were doing that, but we weren't treating the new-initializer as being conditionally executed, which means it was possible to get ill-formed IR as in PR9298. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127147 91177308-0d34-0410-b5e6-96231b3b80d8