[PATCH] [libc++abi] Support for __cxa_bad_array_new_length

Aaron Ballman aaron at aaronballman.com
Thu Aug 28 11:52:15 PDT 2014


v2 of this patch, this one without tests. Clang does not currently
codegen the correct call to __cxa_bad_array_new_length, so the test
case from the previous patch would result in passing -1 to ::operator
new[], which would then throw a std::bad_alloc, causing the test to
fail. This patch elides the test temporarily, and once Clang codegens
the proper call to __cxa_bad_array_new_length, the test will be
committed for it.

~Aaron

On Thu, Aug 28, 2014 at 2:07 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> This patch adds support for __cxa_bad_array_new_length, which is
> required for C++11 runtime support to throw std::bad_array_new_length.
>
> Thanks!
>
> ~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: __cxa_bad_array_new_length_v2.patch
Type: application/octet-stream
Size: 1197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140828/9e45f3ba/attachment.obj>


More information about the cfe-commits mailing list