mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Handle return_borrow in a few more places in SwiftCompilerSources
This commit is contained in:
@@ -682,7 +682,7 @@ private struct PackExplodedFunction {
|
||||
if resultMap.contains(where: {
|
||||
$0.expandedElements.contains(where: { !$0.isSILIndirect })
|
||||
}) {
|
||||
if let originalReturnStatement = specialized.returnInstruction {
|
||||
if let originalReturnStatement = specialized.returnInstruction as? ReturnInst {
|
||||
self.createExplodedReturn(
|
||||
replacing: originalReturnStatement, argumentMap: argumentMap, specContext)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user