[libcxx-commits] [clang] [libcxx] [Clang][Sema][Coroutines] Make coroutine startup exception-safe (CWG2935) Part2 (PR #179192)
Chuanqi Xu via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 3 00:56:22 PST 2026
================
@@ -12755,6 +12755,12 @@ def warn_coroutine_handle_address_invalid_return_type : Warning <
def err_coroutine_promise_final_suspend_requires_nothrow : Error<
"the expression 'co_await __promise.final_suspend()' is required to be non-throwing"
>;
+def warn_coroutine_promise_initial_suspend_throw
+ : Warning<"a potentially throwing 'co_await __promise.initial_suspend()' "
+ "may disable heap allocation elision; "
+ "if it throws, the coroutine return value and state are "
----------------
ChuanqiXu9 wrote:
We don't need the sentence.
https://github.com/llvm/llvm-project/pull/179192
More information about the libcxx-commits
mailing list