llvm-project/clang/test/CodeGenCoroutines
Eric Fiselier f692e7db51 [coroutines] Fix building of new/delete expressions when get_return_object_on_allocation_failure() is present.
Summary:
This patch implements [dcl.fct.def.coroutine]p8:
> The unqualified-id get_return_object_on_allocation_failure is looked up in the scope of
> class P by class member access lookup (3.4.5). If a declaration is found, ..., and if a 
> global allocation function is selected, the ::operator new(size_t, nothrow_t) form shall be used.
> [...]
> The allocation function used in this case must have a non-throwing noexcept-specification.

Reviewers: GorNishanov, rsmith, majnemer, aaron.ballman

Reviewed By: GorNishanov

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D31562

llvm-svn: 300524
2017-04-18 03:12:48 +00:00
..
coro-alloc.cpp [coroutines] Fix building of new/delete expressions when get_return_object_on_allocation_failure() is present. 2017-04-18 03:12:48 +00:00
coro-await.cpp [coroutines] Add codegen for await and yield expressions 2017-03-26 02:18:05 +00:00
coro-builtins-err.c [coroutines] Adding builtins for coroutine intrinsics and backendutil support. 2016-10-03 22:44:48 +00:00
coro-builtins.c [coroutines] update coro_end builtin to match llvm 2017-03-07 21:01:08 +00:00
coro-cleanup.cpp [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body 2017-04-01 00:22:47 +00:00
coro-eh-cleanup.cpp [coroutines] Add coro.end handling 2017-04-05 04:55:03 +00:00
coro-return.cpp [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body 2017-04-01 00:22:47 +00:00
microsoft-abi-operator-coawait.cpp