Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,7 @@ private func createEndCOWMutationIfNeeded(lifetimeDep: LifetimeDependence, _ con
}
scoped = beginApply
// None of the below cases can generate a mutable address.
case let .owned:
fallthrough
case let .borrowed:
fallthrough
case let .local:
fallthrough
case let .initialized:
fallthrough
case let .caller:
fallthrough
case let .global:
fallthrough
case let .unknown:
case .owned, .borrowed, .local, .initialized, .caller, .global, .unknown:
return
}

Expand Down
1 change: 1 addition & 0 deletions SwiftCompilerSources/Sources/SIL/Builder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ public struct Builder {
return notifyNew(endMutation.getAs(EndCOWMutationInst.self))
}

@discardableResult
public func createEndCOWMutationAddr(address: Value) -> EndCOWMutationAddrInst {
let endMutation = bridged.createEndCOWMutationAddr(address.bridged)
return notifyNew(endMutation.getAs(EndCOWMutationAddrInst.self))
Expand Down