]> granicus.if.org Git - clang/commit
[coroutines] Refactor SuspendExpr to create just one OpaqueValue (almost NFC)
authorGor Nishanov <GorNishanov@gmail.com>
Sat, 11 Mar 2017 01:30:17 +0000 (01:30 +0000)
committerGor Nishanov <GorNishanov@gmail.com>
Sat, 11 Mar 2017 01:30:17 +0000 (01:30 +0000)
commit2a9eb8c15bcc95cf9bc956954ae88d59145f9690
tree1a2471183d6d35855402ab32e87c16759a54c0b6
parent0149c8804f2b52a8acb8b0a0b1b30417ef30fe41
[coroutines] Refactor SuspendExpr to create just one OpaqueValue (almost NFC)

Summary:
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.

Reviewers: rsmith, EricWF, aaron.ballman

Reviewed By: EricWF

Subscribers: mehdi_amini, cfe-commits

Differential Revision: https://reviews.llvm.org/D30775

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297541 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
lib/Sema/SemaCoroutine.cpp