[PATCH] D26316: [coroutines] Build and pass coroutine_handle to await_suspend.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 4 16:55:51 PDT 2016
EricWF created this revision.
EricWF added reviewers: rsmith, GorNishanov.
EricWF added a subscriber: cfe-commits.
Herald added a subscriber: 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())`.
https://reviews.llvm.org/D26316
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCoroutine.cpp
test/CodeGenCoroutines/coro-alloc.cpp
test/SemaCXX/coroutines.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26316.76955.patch
Type: text/x-patch
Size: 9937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161104/18ed4b17/attachment.bin>
More information about the cfe-commits
mailing list