[clang] [CodeGen][Objective-C] Add WebAssembly `@finally` support (PR #218967)
Heejin Ahn via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 19 01:29:50 PDT 2026
Hendrik =?utf-8?q?Hübner?= <hhuebner at MacBookPro.localdomain>,
Hendrik =?utf-8?q?Hübner?= <hhuebner at MacBookPro.localdomain>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/218967 at github.com>
================
@@ -224,6 +220,7 @@ void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF,
}
// We save the old funclet pad here before we traverse each catch handler.
+ llvm::Instruction *SavedFuncletPad = CGF.CurrentFuncletPad;
SaveAndRestore RestoreCurrentFuncletPad(CGF.CurrentFuncletPad);
----------------
aheejin wrote:
```suggestion
{
SaveAndRestore RestoreCurrentFuncletPad(CGF.CurrentFuncletPad);
```
Do we need to use both `SavedFuncletPad` and `RestoreCurrentFuncletPad`? If we put line 224-309 within a block, `RestoreCurrentFuncletPad` will restore it automatically. (There should be a matching `}` after line 309)
https://github.com/llvm/llvm-project/pull/218967
More information about the cfe-commits
mailing list