yuxuanchen1997 wrote: > I still feel it would be simpler to lookup the function for `await_suspend` > in the awaiter and look for its return type. Then we don't need to care about > the type of the expression.
After reading a bit, I think it's possible to do this by duplicating a little bit of lookup logic in `Sema::BuildMemberReferenceExpr`. A better way might be to just see what expr `BuildMemberReferenceExpr` returns and whether that provides a good way to retrieve the member call. https://github.com/llvm/llvm-project/pull/85684 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits