[PATCH] D34194: [coroutines] Allow co_await and co_yield expressions that return an lvalue to compile

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 15 10:26:16 PDT 2017

GorNishanov added inline comments.

Comment at: test/CodeGenCoroutines/coro-await.cpp:310
+  int& x = co_await a;
+  // CHECK: await2.ready:
+  // CHECK-NEXT: %[[RES2:.+]] = call dereferenceable(4) i32* @_ZN24AwaitResumeReturnsLValue12await_resumeEv(%struct.AwaitResumeReturnsLValue* %ref.tmp{{.+}})
In release compiler, labels won't have friendly names. //CHECK: await2.ready will fail


More information about the cfe-commits mailing list