This is an archive of the discontinued LLVM Phabricator instance.

[coroutines] Implement unhandled_exception changes.
ClosedPublic

Authored by EricWF on Mar 11 2017, 3:17 AM.

Details

Summary

This patch adopts the recent changes that renamed set_exception(exception_pointer) to unhandled_exception().

Additionally unhandled_exception() is now required, and so an error is emitted when exceptions are enabled but the promise type does not provide the member.
When exceptions are disabled a warning is emitted instead of an error, The warning notes that the unhandled_exception() function is required when exceptions are enabled.

Diff Detail

Event Timeline

EricWF created this revision.Mar 11 2017, 3:17 AM
EricWF updated this revision to Diff 91468.Mar 11 2017, 5:21 AM
  • Remove unused diagnostics about set_exception and current_exception.
This revision is now accepted and ready to land.Mar 11 2017, 8:09 AM
EricWF closed this revision.Mar 22 2017, 5:45 PM