mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftCompilerSources: Add enum BeginAccess.AccessKind
So we can switch over it.
This commit is contained in:
@@ -355,7 +355,7 @@ private struct StackProtectionOptimization {
|
||||
/// Moves the value of a `beginAccess` to a temporary stack location, if possible.
|
||||
private func moveToTemporary(scope beginAccess: BeginAccessInst, mustFixStackNesting: inout Bool,
|
||||
_ context: FunctionPassContext) {
|
||||
if beginAccess.accessKind != .Modify {
|
||||
if beginAccess.accessKind != .modify {
|
||||
// We can only move from a `modify` access.
|
||||
// Also, read-only accesses shouldn't be subject to buffer overflows (because
|
||||
// no one should ever write to such a storage).
|
||||
|
||||
Reference in New Issue
Block a user