[clang] [WinEH] Check object unwinding in seh block only when -eha is used (PR #180108)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 6 16:59:00 PST 2026


GkvJwa wrote:

> perhaps updating clang/test/CodeGenCXX/exceptions-seh.cpp to check that the code can compile without `/EHa`, but without checking the generated code? that seems better than no test

The problem here is that without using `/eha`, the code itself will behave unexpectedly, simply checking if it compiles successfully is meaningless.

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


More information about the cfe-commits mailing list