Skip to content

Commit 2542515

Browse files
committed
OwnershipLiveness.swift fix: don't ignore trivial types
interiorPointerUse is dealing with addresses, so the memory still needs to be alive regardless of the type.
1 parent e280c52 commit 2542515

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/OwnershipLiveness.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,6 @@ extension InteriorUseWalker: OwnershipUseVisitor {
579579

580580
mutating func interiorPointerUse(of operand: Operand, into address: Value)
581581
-> WalkResult {
582-
// OSSA lifetime ignores trivial types.
583-
if operand.value.type.isTrivial(in: function) {
584-
return .continueWalk
585-
}
586582
if useVisitor(operand) == .abortWalk {
587583
return .abortWalk
588584
}

0 commit comments

Comments
 (0)