[Windows SEH] Fix catch+return crash for Windows -EHa
authorPhoebe Wang <phoebe.wang@intel.com>
Sat, 1 Apr 2023 06:20:01 +0000 (14:20 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Sat, 1 Apr 2023 06:53:33 +0000 (14:53 +0800)
commit0cc66f3c779b80a199d692fa84f7ed8d29373d1c
tree7611155f90201a5d07f3b85be3ba70e6f05a12f0
parent52dd9deb156c1e0a70dedfc543343e35f42f5d9e
[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
clang/lib/CodeGen/CGCleanup.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/CodeGen/windows-seh-EHa-CppCatchReturn.cpp [new file with mode: 0644]