[clang] [WinEH] Fix crash, object unwinding in the except block (PR #172287)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 09:04:57 PST 2025
GkvJwa wrote:
> I would also like to note that using `try{}catch(...){}` instead of `__try{}__except(1){}` is a basically semantically equivalent workaround for this issue.
On Windows, the latter is the SEH. The `1` can be replaced with actual exceptions(GetExceptionCode() == ?), which the former cannot do. That's why we need to specifically use SEH.
Also, if you have time, review it again. If there are no issues, I will add test.
https://github.com/llvm/llvm-project/pull/172287
More information about the cfe-commits
mailing list