Skip to content

Commit

Permalink
AutodiffClosureSpecialization: workaround a problem with OSSA.
Browse files Browse the repository at this point in the history
Disable the closure specializer optimization for closures in OSSA until the underlying problem is fixed.
swiftlang#78847

Part of rdar://140229560
  • Loading branch information
eeckstein committed Jan 23, 2025
1 parent 9796d1b commit 09f6f4f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,12 @@ private func handleApplies(for rootClosure: SingleValueInstruction, callSiteMap:
continue
}

// Workaround for a problem with OSSA: https://github.com/swiftlang/swift/issues/78847
// TODO: remove this if-statement once the underlying problem is fixed.
if callee.hasOwnership {
continue
}

if callee.isDefinedExternally {
continue
}
Expand Down

0 comments on commit 09f6f4f

Please sign in to comment.