Files
clang-p2996/clang/lib/CodeGen/CGCoroutine.cpp
Chuanqi Xu 21765af763 [C++] [Coroutines] Assume the allocation doesn't return nullptr
In case of 'get_return_object_on_allocation_failure' get declared, the
compiler is required to call 'operator new(size_t, nothrow_t)' and the
handle the failure case by calling
'get_return_object_on_allocation_failure()'. But the failure case should
be rare and we can assume the allocation is successful and pass the
information to the optimizer.
2023-06-26 14:37:25 +08:00

32 KiB