================
@@ -1211,6 +1215,10 @@ void CodeGenFunction::popCatchScope() {
 }
 
 void CodeGenFunction::ExitCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock) {
+  // For EHa we might have a cleanup block for the try end
+  if (EHStack.begin()->getKind() == EHScope::Cleanup)
----------------
rnk wrote:

```suggestion
  // For EHa we have a cleanup block for the try end.
  if (getLangOpts().EHAsynch)
```

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

Reply via email to