Skip to content

Commit e4db036

Browse files
author
Harlan Haskins
authored
Merge pull request #20203 from harlanhaskins/operator-oh-would-you-help-me-place-this-call
[Frontend] Remove -enable-operator-designated-types
2 parents c2d6c9a + 44f1806 commit e4db036

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
215215
Opts.EnableOperatorDesignatedTypes |=
216216
Args.hasArg(OPT_enable_operator_designated_types);
217217

218+
// Always enable operator designated types for the standard library.
219+
Opts.EnableOperatorDesignatedTypes |= FrontendOpts.ParseStdlib;
220+
218221
Opts.SolverEnableOperatorDesignatedTypes |=
219222
Args.hasArg(OPT_solver_enable_operator_designated_types);
220223

stdlib/public/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(SWIFT_RUNTIME_USE_SANITIZERS)
1313
endif()
1414
endif()
1515

16-
list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree" "-Xfrontend" "-enable-operator-designated-types")
16+
list(APPEND SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS "-Xfrontend" "-verify-syntax-tree")
1717

1818
# Build the runtime with -Wall to catch, e.g., uninitialized variables
1919
# warnings.

0 commit comments

Comments
 (0)