[PATCH] D30775: [coroutines] Refactor SuspendExpr to create just one OpaqueValue (almost NFC)

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 8 23:12:51 PST 2017


GorNishanov created this revision.
Herald added a subscriber: mehdi_amini.

Create only one OpaqueValue for await_ready/await_suspend/await_resume.
Store OpaqueValue used in the CoroutineSuspendExpr node, so that CodeGen does not have to hunt looking for it.


https://reviews.llvm.org/D30775

Files:
  include/clang/AST/ExprCXX.h
  lib/Sema/SemaCoroutine.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30775.91134.patch
Type: text/x-patch
Size: 5053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170309/1dda220a/attachment.bin>


More information about the cfe-commits mailing list