================
@@ -1488,6 +1488,8 @@ bool CoroutineStmtBuilder::makeNewAndDeleteExpr() {
     if (FoundAllocations) {
       IAP = FoundAllocations->IAP;
       OperatorNew = FoundAllocations->OperatorNew;
+    } else {
+      OperatorNew = nullptr;
----------------
cor3ntin wrote:

I wonder if we can refactor LookupAllocationFunction so that it doesn't mutate 
state and/or add a comment.
at the very least I think LookupAllocationFunction should capture `OperatorNew` 
explicitly.

https://github.com/llvm/llvm-project/pull/215619
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to