[NFC] [Frontend] Correct the use of 'auto' in SemaCoroutine and CGCoroutine
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 7 Sep 2022 02:35:54 +0000 (10:35 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 7 Sep 2022 02:45:01 +0000 (10:45 +0800)
commit5f571eeb3f764c6d97b81822464ea420adef2cf7
tree0f3d3aaf1a1656f283f6c7ed5f8ae67003ab32fe
parent16743c953441e8a5aad53069e9a13b14ff5ac09a
[NFC] [Frontend] Correct the use of 'auto' in SemaCoroutine and CGCoroutine

We should only use 'auto' in case we can know the type from the right
hand side of the expression. Also we need keep '*' around if the type is
a pointer actually. Few uses of 'auto' in SemaCoroutine.cpp and
CGCoroutine.cpp violates the rule. This commit tries to fix it.
clang/lib/CodeGen/CGCoroutine.cpp
clang/lib/Sema/SemaCoroutine.cpp