Simplify co_await_expander.
authorBin Cheng <bin.cheng@linux.alibaba.com>
Fri, 10 Apr 2020 04:38:53 +0000 (12:38 +0800)
committerBin Cheng <bin.cheng@linux.alibaba.com>
Fri, 10 Apr 2020 04:53:00 +0000 (12:53 +0800)
commit6c4a05f251ae8a39fa896524defaf4228328c259
tree760eeb443352afc5155a3ab456efb34a1ba2df3c
parentd79a22eddc694970316992927c669dd801e07557
Simplify co_await_expander.

gcc/cp
2020-04-10  Bin Cheng  <bin.cheng@linux.alibaba.com>

    * coroutines.cc (co_await_expander): Simplify.

gcc/testsuite
2020-04-10  Bin Cheng  <bin.cheng@linux.alibaba.com>

    * g++.dg/coroutines/co-await-syntax-10.C: New test.
    * g++.dg/coroutines/co-await-syntax-11.C: New test.
gcc/cp/ChangeLog
gcc/cp/coroutines.cc
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/co-await-syntax-10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/coroutines/co-await-syntax-11.C [new file with mode: 0644]