[all-commits] [llvm/llvm-project] 33ba8b: [Windows SEH]: Fix -O2 crash for Windows -EHa

tentzen via All-commits all-commits at lists.llvm.org
Fri Jun 4 14:10:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33ba8bd2c942062731a17e1b864b5953e3d79f1a
      https://github.com/llvm/llvm-project/commit/33ba8bd2c942062731a17e1b864b5953e3d79f1a
  Author: Ten Tzen <tentzen at microsoft.com>
  Date:   2021-06-04 (Fri, 04 Jun 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCleanup.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp

  Log Message:
  -----------
  [Windows SEH]: Fix -O2 crash for Windows -EHa

This patch fixes a Windows -EHa crash induced by previous commit 797ad701522988e212495285dade8efac41a24d4.
The crash was caused by "LifetimeMarker" scope (with option -O2) that should not be considered as SEH Scope.

This change also turns off -fasync-exceptions by default under -EHa option for now.

Differential Revision: https://reviews.llvm.org/D103664#2799944




More information about the All-commits mailing list