]> granicus.if.org Git - clang/commit
[coroutines] Fix rebuilding of dependent coroutine parameters
authorEric Fiselier <eric@efcs.ca>
Sat, 3 Jun 2017 00:22:18 +0000 (00:22 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 3 Jun 2017 00:22:18 +0000 (00:22 +0000)
commit98cf823022d1d71065c71e9338226ebf8bfa36ba
treef8cf7081b976ff1f61da87c08829c08c46297f11
parent36a7841dc7f049d1ddd6848c784eedbd1754bff2
[coroutines] Fix rebuilding of dependent coroutine parameters

Summary:
We were not handling correctly rebuilding of parameter and were not creating copies for them.
Now we will always rebuild parameter moves in TreeTransform's TransformCoroutineBodyStmt.

Reviewers: rsmith, GorNishanov

Reviewed By: rsmith

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/CoroutineStmtBuilder.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/TreeTransform.h
test/CodeGenCoroutines/coro-params.cpp
test/SemaCXX/coroutines.cpp