]> granicus.if.org Git - clang/commit
[Driver] Stop passing -fseh-exceptions for x86_64-windows-msvc
authorShoaib Meenai <smeenai@fb.com>
Wed, 6 Jun 2018 23:09:02 +0000 (23:09 +0000)
committerShoaib Meenai <smeenai@fb.com>
Wed, 6 Jun 2018 23:09:02 +0000 (23:09 +0000)
commitf7a73f32af153d5dd46a071ac51a5cb65b6bdc06
tree67a12734d7ffa3cf9f195407102f334c694711d0
parent1fb14508226281332d180eacbbed286fb53162aa
[Driver] Stop passing -fseh-exceptions for x86_64-windows-msvc

-fseh-exceptions is only meaningful for MinGW targets, and that driver
already has logic to pass either -fdwarf-exceptions or -fseh-exceptions
as appropriate. -fseh-exceptions is just a no-op for MSVC triples, and
passing it to cc1 causes unnecessary confusion.

Differential Revision: https://reviews.llvm.org/D47850

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334145 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChain.cpp
test/Driver/windows-exceptions.cpp [new file with mode: 0644]