[PATCH] D125517: [Frontend] [Coroutines] Emit error when we found incompatible allocation function in promise_type

Chuanqi Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 15 19:26:11 PDT 2022


ChuanqiXu marked an inline comment as done.
ChuanqiXu added inline comments.


================
Comment at: clang/lib/Sema/SemaCoroutine.cpp:1312
+
+  bool PromiseContainNew = [this, &PromiseType]() -> bool {
+    DeclarationName NewName =
----------------
erichkeane wrote:
> Slight preference to just have this as a part of LookupAllocationFunction.
Yeah, the code would look better in that way. But it would do redundant lookups in that way. So I prefer the current style.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125517/new/

https://reviews.llvm.org/D125517



More information about the cfe-commits mailing list