[clang] Disallow mixing SEH and Objective-C exceptions
authorNico Weber <thakis@chromium.org>
Wed, 20 Oct 2021 16:47:15 +0000 (12:47 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 20 Oct 2021 18:18:12 +0000 (14:18 -0400)
commitfb8829768d774689c368c49cb3ca17339378cd91
tree929e2416423fb12a81c85cb85d86b9a90ccb3bba
parent503d061dc7a8b36dba1df4bf083021a2482c6fb6
[clang] Disallow mixing SEH and Objective-C exceptions

We already disallow mixing SEH and C++ exceptions, and
mixing SEH and Objective-C exceptions seems to not work (see PR52233).
Emitting an error is friendlier than crashing.

Differential Revision: https://reviews.llvm.org/D112157
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/ScopeInfo.h
clang/lib/Sema/ScopeInfo.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/exceptions-seh.mm [new file with mode: 0644]