Skip to content

Commit 81b2c46

Browse files
authored
Merge pull request swiftlang#14884 from gottesmm/pr-0439807e131bd73b86ad60a03c89e9b01de37125
2 parents ccb06da + 1f15ebf commit 81b2c46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/SILGen/SILGenBridging.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,10 +1094,8 @@ ManagedValue SILGenFunction::emitBridgedToNativeError(SILLocation loc,
10941094
};
10951095
auto conformances = getASTContext().AllocateCopy(conformanceArray);
10961096

1097-
SILValue nativeError =
1098-
B.createInitExistentialRef(loc, nativeErrorTy, bridgedErrorTy,
1099-
bridgedError.forward(*this), conformances);
1100-
return emitManagedRValueWithCleanup(nativeError);
1097+
return B.createInitExistentialRef(loc, nativeErrorTy, bridgedErrorTy,
1098+
bridgedError, conformances);
11011099
}
11021100

11031101
// Otherwise, we need to call a runtime function to potential substitute

0 commit comments

Comments
 (0)