[PATCH] D26316: [coroutines] Build and pass coroutine_handle to await_suspend.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 8 13:37:24 PST 2017
EricWF added a comment.
This LGTM, but I don't know enough Clang to be 100% on it. Perhaps somebody else could give it a quick second look?
================
Comment at: lib/Sema/SemaCoroutine.cpp:157
+ if (S.RequireCompleteType(Loc, CoroHandleType,
+ diag::err_coroutine_traits_missing_specialization))
+ return QualType();
----------------
Should this diagnostic be renamed since it's general to both `coroutine_traits` and `coroutine_handle`?
================
Comment at: test/SemaCXX/coroutines.cpp:540
+ //expected-note at -1 {{call to 'initial_suspend' implicitly required by the initial suspend point}}
+ //expected-note at +1 {{function is a coroutine due to use of 'co_return' here}}
+ co_return;
----------------
Nit, put the `// expected-note` directly on the `co_return` line.
https://reviews.llvm.org/D26316
More information about the cfe-commits
mailing list