Skip to content

Commit 7c8e99d

Browse files
committed
Suppress memory-safety diagnostic for SwiftONoneSupport
It's a weird beast.
1 parent 53f1468 commit 7c8e99d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3974,7 +3974,8 @@ bool CompilerInvocation::parseArgs(
39743974
"-Ounchecked");
39753975
}
39763976

3977-
if (!LangOpts.EnableAccessControl) {
3977+
if (!LangOpts.EnableAccessControl &&
3978+
FrontendOpts.ModuleName != SWIFT_ONONE_SUPPORT) {
39783979
Diags.diagnose(SourceLoc(),
39793980
diag::command_line_conflicts_with_strict_safety,
39803981
"-disable-access-control");

0 commit comments

Comments
 (0)