[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 28 11:17:51 PDT 2017

EricWF marked an inline comment as done.
EricWF added inline comments.

Comment at: lib/Sema/SemaCoroutine.cpp:324
 struct ReadySuspendResumeResult {
+  enum AwaitCallType { ACT_Ready, ACT_Suspend, ACT_Resume };
   Expr *Results[3];
GorNishanov wrote:
> enum class?
We want the explicit conversion to integers so we can use them as indexes to `Results`.


More information about the cfe-commits mailing list