[PATCH] D30769: [coroutines] Build and pass coroutine_handle to await_suspend
Gor Nishanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 8 18:52:58 PST 2017
GorNishanov created this revision.
Herald added subscribers: EricWF, mehdi_amini.
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)
https://reviews.llvm.org/D30769
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaExprMember.cpp
test/CodeGenCoroutines/coro-alloc.cpp
test/CodeGenCoroutines/coro-return.cpp
test/SemaCXX/coreturn.cpp
test/SemaCXX/coroutines.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30769.91120.patch
Type: text/x-patch
Size: 17400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170309/b84aa4d1/attachment.bin>
More information about the cfe-commits
mailing list