================
@@ -1870,7 +1870,8 @@ bool CoroutineStmtBuilder::makeGroDeclAndReturnStmt() {
} else {
GroDecl = VarDecl::Create(
S.Context, &FD, FD.getLocation(), FD.getLocation(),
- &S.PP.getIdentifierTable().get("__coro_gro"), GroType,
+ &S.PP.getIdentifierTable().get("__coro_gro"),
+ S.BuildDecltypeType(ReturnValue).getCanonicalType(),
----------------
ChuanqiXu9 wrote:
Just curious, why `getCanonicalType`?
https://github.com/llvm/llvm-project/pull/179156
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits