================
@@ -480,6 +480,17 @@ void CodeGenFunction::FinishFunction(SourceLocation 
EndLoc) {
     }
   }
 
+  // The exception slots of a coroutine need to be stored outside of the
+  // coroutine frame because they can be triggered before the coroutine frame
+  // exists. Notable examples are failing during the construction of the 
promise
+  // itself, and in future through contract assertion failures.
----------------
ChuanqiXu9 wrote:

We also need to mention that, this is valid as C++ spec doesn't allow us to 
suspend the coroutine during exception handling.

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

Reply via email to