[clang] [CodeGen][ObjC] Initial WebAssembly Support for GNUstep v2 (PR #183753)
Hugo Melder via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 01:56:57 PDT 2026
hmelder wrote:
@HendrikHuebner
> If we simply push a cleanup that contains the finally block right before entering the try/catch, will this not be guaranteed to be invoked after exiting the try/catch in both the exceptional and non exceptional case?
But this is not the right eh scope then. You want to wrap the try/catch eh scope and then add a cleanup for both the normal and exception edge.
Please read the comment in FinallyInfo::Enter:
https://github.com/llvm/llvm-project/blob/936643678fa80eceea717ad304300d8a90340df0/clang/lib/CodeGen/CGException.cpp#L1459-L1468
Here the definition of FinallyInfo::Enter:
https://github.com/llvm/llvm-project/blob/936643678fa80eceea717ad304300d8a90340df0/clang/lib/CodeGen/CGException.cpp#L1479-L1488
https://github.com/llvm/llvm-project/pull/183753
More information about the cfe-commits
mailing list