================
@@ -2503,6 +2506,29 @@ Stmt *BlockExpr::getBody() {
 // Generic Expression Routines
 
//===----------------------------------------------------------------------===//
 
+bool Expr::mayBranchOut() const {
----------------
zygoloid wrote:

Computing this seems a little expensive in general. I wonder if we could track 
a bit on `FunctionDecl` that indicates whether it contains any branches out of 
statement expressions, and skip calling this if the enclosing function is not a 
coroutine and does not contain branches out of statement expressions.

https://github.com/llvm/llvm-project/pull/85398
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to