Skip to content

Commit cc3951e

Browse files
authored
Merge pull request #84918 from eeckstein/fix-existential-specializer
ExistentialTransform: fix a wrong result type of `open_existential_addr`
2 parents 958420e + 08804d8 commit cc3951e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/FunctionSignatureTransforms/ExistentialTransform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void ExistentialTransform::populateThunkBody() {
443443
switch (ExistentialRepr) {
444444
case ExistentialRepresentation::Opaque: {
445445
archetypeValue = Builder.createOpenExistentialAddr(
446-
Loc, OrigOperand, OpenedSILType, it->second.AccessType);
446+
Loc, OrigOperand, OpenedSILType.getAddressType(), it->second.AccessType);
447447
SILValue calleeArg = archetypeValue;
448448
if (OriginallyConsumed) {
449449
// open_existential_addr projects a borrowed address into the

0 commit comments

Comments
 (0)