[clang] [Clang] CGCoroutines skip emitting try block for value returning `noexcept` init `await_resume` calls (PR #73160)

Yuxuan Chen via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 14:35:13 PST 2023


yuxuanchen1997 wrote:

@ChuanqiXu9, I updated the check like you suggested, and it should look much nicer now. The only caveat is that the `children()` call isn't going to cover the implicit destructor call in a `CXXBindTemporaryExpr`. That pattern matching case is here to stay and likely there are many other types implicit calls that make this analysis unsound (See https://eel.is/c++draft/except.spec#6). In reality none of them can reach here though.

https://github.com/llvm/llvm-project/pull/73160


More information about the cfe-commits mailing list