Skip to content

Commit 624910e

Browse files
author
git apple-llvm automerger
committed
Merge commit '7fc50e92a59c' from llvm.org/main into next
2 parents 13f5058 + 7fc50e9 commit 624910e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3985,12 +3985,13 @@ static StringRef GetInputKindName(InputKind IK) {
39853985
static StringRef getExceptionHandlingName(unsigned EHK) {
39863986
switch (static_cast<LangOptions::ExceptionHandlingKind>(EHK)) {
39873987
case LangOptions::ExceptionHandlingKind::None:
3988-
default:
39893988
return "none";
3990-
case LangOptions::ExceptionHandlingKind::SjLj:
3991-
return "sjlj";
39923989
case LangOptions::ExceptionHandlingKind::DwarfCFI:
39933990
return "dwarf";
3991+
case LangOptions::ExceptionHandlingKind::SjLj:
3992+
return "sjlj";
3993+
case LangOptions::ExceptionHandlingKind::WinEH:
3994+
return "seh";
39943995
case LangOptions::ExceptionHandlingKind::Wasm:
39953996
return "wasm";
39963997
}
@@ -4395,7 +4396,7 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
43954396
A->getValue())
43964397
.Case("dwarf", LangOptions::ExceptionHandlingKind::DwarfCFI)
43974398
.Case("sjlj", LangOptions::ExceptionHandlingKind::SjLj)
4398-
.Case("wineh", LangOptions::ExceptionHandlingKind::WinEH)
4399+
.Case("seh", LangOptions::ExceptionHandlingKind::WinEH)
43994400
.Case("wasm", LangOptions::ExceptionHandlingKind::Wasm)
44004401
.Case("none", LangOptions::ExceptionHandlingKind::None)
44014402
.Default(std::nullopt);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: %clang -target x86_64-windows-gnu -x c++-module -std=gnu++23 -c -o /dev/null -Xclang -disable-llvm-passes %s
2+
3+
// Make sure the command succeeds and doesn't break on the -exception-model flag in cc1.
4+
export module empty;

0 commit comments

Comments
 (0)