[PATCH] D45860: [Coroutines] Catch exceptions in await_resume

Brian Gesiak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 19 20:25:50 PDT 2018


modocache created this revision.
modocache added reviewers: GorNishanov, EricWF.

http://wg21.link/P0664r2 section "Evolution/Core Issues 24" describes a
proposed change to Coroutines TS that would have any exceptions thrown
after the initial suspend point of a coroutine be caught by the handler
specified by the promise type's 'unhandled_exception' member function.
This commit provides a sample implementation of the specified behavior.

Test Plan: `check-clang`


Repository:
  rC Clang

https://reviews.llvm.org/D45860

Files:
  lib/CodeGen/CGCoroutine.cpp
  test/CodeGenCoroutines/coro-await-resume-eh.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45860.143223.patch
Type: text/x-patch
Size: 4877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180420/bfd07bdf/attachment.bin>


More information about the cfe-commits mailing list