]> granicus.if.org Git - clang/commit
[coroutines] Make generic lambda coroutines work
authorGor Nishanov <GorNishanov@gmail.com>
Wed, 24 May 2017 15:44:57 +0000 (15:44 +0000)
committerGor Nishanov <GorNishanov@gmail.com>
Wed, 24 May 2017 15:44:57 +0000 (15:44 +0000)
commit428da5f9a1ac02001f8744d640875d3aedb8064a
tree8aa045785fcc30517f2d40defa48d6fb23b63fc5
parentaa8caaeedba138d49222e6baae4deaa1a3dfc78e
[coroutines] Make generic lambda coroutines work

Summary:
1. Coroutine cannot be constexpr (added a check in SemaLambda.cpp not to mark coroutine as constexpr)
2. TransformCoroutineBodyStmt should transform ResultDecl and ReturnStmt

Reviewers: rsmith, GorNishanov

Reviewed By: GorNishanov

Subscribers: EricWF, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303764 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLambda.cpp
lib/Sema/TreeTransform.h
test/CodeGenCoroutines/coro-lambda.cpp [new file with mode: 0644]