[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
Tue Jun 13 22:56:00 PDT 2017


EricWF created this revision.

The title says it all.

However I can't figure out how to test `int& x = co_yield 42;` since that expression doesn't seem to want to parse.


https://reviews.llvm.org/D34194

Files:
  lib/CodeGen/CGCoroutine.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGenCoroutines/coro-await.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34194.102482.patch
Type: text/x-patch
Size: 6889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170614/8e594196/attachment.bin>


More information about the cfe-commits mailing list