2 Commits

Author SHA1 Message Date
Phoebe Wang
a3f688422c [Windows SEH] Fix ehcleanup crash for Windows -EHa
`Builder.GetInsertBlock()` may return null sometimes. https://godbolt.org/z/n1Ph47jP1

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D147867
2023-04-12 14:44:11 +08:00
Phoebe Wang
0cc66f3c77 [Windows SEH] Fix catch+return crash for Windows -EHa
This change also turns on -fasync-exceptions by default under -EHa
option due to the backend patch merged.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D147165
2023-04-01 14:53:33 +08:00