[clang] [WinEH] Fix crash, object unwinding in the except block (PR #172287)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 22 03:00:50 PST 2026
================
@@ -175,3 +181,26 @@ void use_inline() {
// CHECK: attributes #[[NOINLINE]] = { {{.*noinline.*}} }
void seh_in_noexcept() noexcept { __try {} __finally {} }
+
+#if defined(ERR1)
+void seh_unwinding() {
+ __try {
+ HasCleanup x; // expected-error{{expected '__except' or '__finally' block}}
----------------
GkvJwa wrote:
Review again
https://github.com/llvm/llvm-project/pull/172287
More information about the cfe-commits
mailing list