aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-06-15 19:43:36 +0000
committerEric Fiselier <eric@efcs.ca>2017-06-15 19:43:36 +0000
commitcddaf8728fd2786bf3af3a81814c2fe2b13d8692 (patch)
tree1d69077933feed592a58949d2fd371a7c4e4bef9 /clang/lib/CodeGen/CodeGenFunction.h
parentb560fdf3b84e18e3fb19d12cb2bd610dc2316118 (diff)
downloadllvm-cddaf8728fd2786bf3af3a81814c2fe2b13d8692.zip
llvm-cddaf8728fd2786bf3af3a81814c2fe2b13d8692.tar.gz
llvm-cddaf8728fd2786bf3af3a81814c2fe2b13d8692.tar.bz2
[coroutines] Allow co_await and co_yield expressions that return an lvalue to compile
Summary: The title says it all. Reviewers: GorNishanov, rsmith Reviewed By: GorNishanov Subscribers: rjmccall, cfe-commits Differential Revision: https://reviews.llvm.org/D34194 llvm-svn: 305496
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index a179276..831eedf 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2550,9 +2550,11 @@ public:
RValue EmitCoawaitExpr(const CoawaitExpr &E,
AggValueSlot aggSlot = AggValueSlot::ignored(),
bool ignoreResult = false);
+ LValue EmitCoawaitLValue(const CoawaitExpr *E);
RValue EmitCoyieldExpr(const CoyieldExpr &E,
AggValueSlot aggSlot = AggValueSlot::ignored(),
bool ignoreResult = false);
+ LValue EmitCoyieldLValue(const CoyieldExpr *E);
RValue EmitCoroutineIntrinsic(const CallExpr *E, unsigned int IID);
void EnterCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock = false);