This is an archive of the discontinued LLVM Phabricator instance.

[coroutines] Build and pass coroutine_handle to await_suspend
ClosedPublic

Authored by GorNishanov on Mar 8 2017, 6:52 PM.

Details

Summary

This patch adds passing a coroutine_handle object to await_suspend calls.
It builds the coroutine_handle using coroutine_handle<PromiseType>::from_address(__builtin_coro_frame()).

(a revision of https://reviews.llvm.org/D26316 that for some reason refuses to apply via arc patch)

Diff Detail

Repository
rL LLVM

Event Timeline

GorNishanov created this revision.Mar 8 2017, 6:52 PM
GorNishanov updated this revision to Diff 91121.Mar 8 2017, 7:14 PM
GorNishanov edited edge metadata.

tweak SemaCXX/coreturn.cpp test to actually pass

This revision was automatically updated to reflect the committed changes.