]> granicus.if.org Git - clang/commit
[coroutines] Evaluate the operand of void `co_return` expressions.
authorEric Fiselier <eric@efcs.ca>
Mon, 31 Jul 2017 07:48:13 +0000 (07:48 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 31 Jul 2017 07:48:13 +0000 (07:48 +0000)
commit7e10b22a6cf1e9e69a17eb6aab6e7f4d105419bd
tree6e78646e5d446cd1d7fa257dd24c08f46ca15320
parent3cc9f7d52aa367cb636c01f6e37d7f8301527b2b
[coroutines] Evaluate the operand of void `co_return` expressions.

Summary:
Previously Clang incorrectly ignored the expression of a void `co_return`. This patch addresses that bug.

I'm not quite sure if I got the code-gen right, but this patch is at least a start.

Reviewers: rsmith, GorNishanov

Reviewed By: rsmith, GorNishanov

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCoroutine.cpp
test/CodeGenCoroutines/coro-ret-void.cpp