There were two issues when `/guard:ehcont` is enabled with the SEH personality on Windows: 1. As @namazso correctly identified, we bail out of `WinException::endFunction` early for `MSVC_TableSEH` with funclets, expecting the exception data to be emitted in `endFunclet`, but `endFunclet` didn't copy the EHCont metadata from the function to the module. 2. The SEH personality requires that the basic block containing the `catchpad` is the target, not the `catchret`. Fixes #64585
53 KiB
53 KiB