Skip to content

Commit 9895a54

Browse files
committed
sil-opt: Enable Feature::NoncopyableGenerics when built with SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS
1 parent b98d7a5 commit 9895a54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/DriverTool/sil_opt_main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@ int sil_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
652652
Invocation.getLangOptions().enableFeature(
653653
Feature::OldOwnershipOperatorSpellings);
654654
}
655+
if (SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS)
656+
Invocation.getLangOptions().enableFeature(Feature::NoncopyableGenerics);
657+
655658
Invocation.getLangOptions().BypassResilienceChecks =
656659
options.BypassResilienceChecks;
657660
Invocation.getDiagnosticOptions().PrintDiagnosticNames =

0 commit comments

Comments
 (0)