================
@@ -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.
----------------
ojhunt wrote:

I thought mentioning contract preconditions made sense, but that makes this 
weird once we've landed contracts support

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