Skip to content

Commit 222ed4c

Browse files
authored
Merge pull request #63661 from eeckstein/disable-stack-protection
Disable stack protection by default
2 parents 48260f4 + b687cb3 commit 222ed4c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/swift/AST/SILOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class SILOptions {
129129
bool EnablePerformanceAnnotations = false;
130130

131131
/// Enables the emission of stack protectors in functions.
132-
bool EnableStackProtection = true;
132+
bool EnableStackProtection = false;
133133

134134
/// Like `EnableStackProtection` and also enables moving of values to
135135
/// temporaries for stack protection.

test/SILOptimizer/stack_protection.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %target-swift-frontend -module-name=test -emit-sil %s -O | %FileCheck %s --check-prefix=CHECK --check-prefix=DEFAULT
22
// RUN: %target-swift-frontend -module-name=test -enable-move-inout-stack-protector -emit-sil %s -O -enable-stack-protector | %FileCheck %s --check-prefix=CHECK --check-prefix=MOVE
33

4+
// temporarily disabled: rdar://105231457
5+
// XFAIL: *
6+
47
// REQUIRES: swift_in_compiler
58

69
@_silgen_name("potentiallyBadCFunction")

0 commit comments

Comments
 (0)