Merge pull request #68649 from kubamracek/embedded-throw-as-trap

[embedded] Add a temporary flag that turns throws into traps so that programs that use throwing can at least be compiled for now
This commit is contained in:
Kuba (Brecka) Mracek
2023-09-21 14:52:29 -07:00
committed by GitHub
5 changed files with 62 additions and 0 deletions

View File

@@ -723,6 +723,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);
Opts.ThrowsAsTraps |= Args.hasArg(OPT_throws_as_traps);
if (auto A = Args.getLastArg(OPT_enable_objc_attr_requires_foundation_module,
OPT_disable_objc_attr_requires_foundation_module)) {
Opts.EnableObjCAttrRequiresFoundation