[clang] [llvm] [WinEH] Fix try scopes leaking to caller on inline (PR #167176)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 26 13:00:55 PST 2025


================
@@ -341,9 +341,11 @@ void llvm::calculateSEHStateForAsynchEH(const BasicBlock *BB, int State,
         // Retrive the new State from seh_try_begin
         State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)];
       else if (Fn && Fn->isIntrinsic() &&
-               Fn->getIntrinsicID() == Intrinsic::seh_try_end)
+               Fn->getIntrinsicID() == Intrinsic::seh_try_end) {
----------------
efriedma-quic wrote:

If there's an issue with the backend, it needs its own test, with an LLVM IR input file.

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


More information about the llvm-commits mailing list