[clang] [WinEH] Fix try scopes leaking to caller on inline (PR #167176)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 10:46:56 PST 2026


================
@@ -635,6 +629,13 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
     ExitCXXTryStmt(S);
 }
 
+struct TerminateTryScope final : EHScopeStack::Cleanup {
+  TerminateTryScope() {}
+
+  // this is a noop scope that triggers the scope end emission in CGCleanup
----------------
rnk wrote:

```suggestion
  // This is a noop scope that triggers the scope end emission in CGCleanup.
```

https://github.com/llvm/llvm-project/pull/167176


More information about the cfe-commits mailing list