Skip to content

Commit e976243

Browse files
committed
Improve Operand.isAddressInitialization to handle indirect results.
1 parent b08f2de commit e976243

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SwiftCompilerSources/Sources/SIL/Operand.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ extension Operand {
176176
case let srcDestInst as SourceDestAddrInstruction
177177
where srcDestInst.destinationOperand == self:
178178
return true
179+
case let apply as FullApplySite:
180+
return apply.isIndirectResult(operand: self)
179181
default:
180182
return false
181183
}

0 commit comments

Comments
 (0)