[clang] [WinEH] Fix object delete crash (PR #180144)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 6 01:08:43 PST 2026


https://github.com/GkvJwa created https://github.com/llvm/llvm-project/pull/180144

None

>From 6fc5496ed0cf55d366678c45130da69b7a4cfc51 Mon Sep 17 00:00:00 2001
From: GkvJwa <gkvjwa at gmail.com>
Date: Fri, 6 Feb 2026 17:01:43 +0800
Subject: [PATCH] Test

---
 clang/lib/CodeGen/CGCleanup.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 28ac9bf396356..f64995511fd88 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -813,8 +813,6 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough,
       if (IsEHa && getInvokeDest()) {
         if (Personality.isMSVCXXPersonality())
           EmitSehCppScopeEnd();
-        else
-          EmitSehTryScopeEnd();
       }
 
       destroyOptimisticNormalEntry(*this, Scope);



More information about the cfe-commits mailing list