[PATCH] D34194: [coroutines] Allow co_await and co_yield expressions that return an lvalue to compile
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 11:44:41 PDT 2017
EricWF marked 2 inline comments as done.
EricWF 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{{.+}})
----------------
GorNishanov wrote:
> In release compiler, labels won't have friendly names. //CHECK: await2.ready will fail
I'm not sure I understand. Are you saying that Clang generates different IR depending on how it's built (ie release vs debug)?
https://reviews.llvm.org/D34194
More information about the cfe-commits
mailing list