This is an archive of the discontinued LLVM Phabricator instance.

[coroutines] Evaluate the operand of void `co_return` expressions.
ClosedPublic

Authored by EricWF on Jul 30 2017, 7:40 PM.

Details

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.

Diff Detail

Event Timeline

EricWF created this revision.Jul 30 2017, 7:40 PM
This revision is now accepted and ready to land.Jul 30 2017, 8:37 PM
rsmith accepted this revision.Jul 30 2017, 11:38 PM
rsmith added inline comments.
test/CodeGenCoroutines/coro-ret-void.cpp
30

This seems like an extremely confusing way to format this statement. Maybe move the space left a bit?

EricWF added inline comments.Jul 31 2017, 12:46 AM
test/CodeGenCoroutines/coro-ret-void.cpp
30

Urg. git clang-format strikes again. I'm working on a patch to teach clang-format about coroutines. This is just more motivation :-)

I'll fix the formatting before committing.

EricWF closed this revision.Jul 31 2017, 12:48 AM