[clang] [WinEH] Check object unwinding in seh block only when -eha is used (PR #180108)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 11 03:25:18 PST 2026
GkvJwa wrote:
> I understand that you're working on improving the support for async SEH. That's great, and it sounds like Chromium has code which will benefit.
>
> However, you didn't answer my main question: if `err_seh_object_unwinding` is for diagnosing mixing SEH and C++ exception handling, why did this PR gate it behind `getLangOpts().EHAsynch` and not `getLangOpts().CXXExceptions`?
I expressed that seh only approaches usability when eha is enabled. Therefore, I used ehasynch detection instead of cxxexceptions.
Moreover, chromium disables exceptions. I think if the code that reported an error before is executed and only eha is enabled, Ilvm is likely to crash as well
In addition, these switches may not necessarily be equivalent even in the presence of seh (based on the current code of Ilvm)
https://github.com/llvm/llvm-project/pull/180108
More information about the cfe-commits
mailing list