[all-commits] [llvm/llvm-project] fb8829: [clang] Disallow mixing SEH and Objective-C except...

Nico Weber via All-commits all-commits at lists.llvm.org
Wed Oct 20 11:18:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb8829768d774689c368c49cb3ca17339378cd91
      https://github.com/llvm/llvm-project/commit/fb8829768d774689c368c49cb3ca17339378cd91
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-10-20 (Wed, 20 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/ScopeInfo.h
    M clang/lib/Sema/ScopeInfo.cpp
    M clang/lib/Sema/SemaStmt.cpp
    A clang/test/SemaCXX/exceptions-seh.mm

  Log Message:
  -----------
  [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




More information about the All-commits mailing list