[PATCH] D47853: [Frontend] Disallow non-MSVC exception models for windows-msvc targets
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 6 16:41:53 PDT 2018
smeenai created this revision.
smeenai added reviewers: compnerd, mstorsjo, rnk.
The windows-msvc target is used for MSVC ABI compatibility, including
the exceptions model. It doesn't make sense to pair a windows-msvc
target with a non-MSVC exception model. This would previously cause an
assertion failure; explicitly error out for it in the frontend instead.
This also allows us to reduce the matrix of target/exception models a
bit (see the modified tests), and we can possibly simplify some of the
personality code in a follow-up.
Repository:
rC Clang
https://reviews.llvm.org/D47853
Files:
include/clang/Basic/DiagnosticFrontendKinds.td
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/personality.c
test/CodeGenCXX/ms-eh-personality.cpp
test/CodeGenCXX/personality.cpp
test/CodeGenObjC/personality.m
test/CodeGenObjCXX/personality.mm
test/Frontend/windows-exceptions.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47853.150223.patch
Type: text/x-patch
Size: 21808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180606/669505fa/attachment-0001.bin>
More information about the cfe-commits
mailing list