diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-06-15 19:43:36 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-06-15 19:43:36 +0000 |
commit | cddaf8728fd2786bf3af3a81814c2fe2b13d8692 (patch) | |
tree | 1d69077933feed592a58949d2fd371a7c4e4bef9 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | b560fdf3b84e18e3fb19d12cb2bd610dc2316118 (diff) | |
download | llvm-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.h | 2 |
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); |