[PATCH] D112157: [clang] Disallow mixing SEH and Objective-C exceptions

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 20 10:06:08 PDT 2021


thakis created this revision.
thakis added a reviewer: rnk.
thakis requested review of this revision.

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.


https://reviews.llvm.org/D112157

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112157.381009.patch
Type: text/x-patch
Size: 4947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211020/a98d7590/attachment.bin>


More information about the cfe-commits mailing list