Skip to content

Commit 6b57f73

Browse files
committed
Fix a copy-and-paste mistake blocking some other code from working
I hadn't bothered testing that code yet, but Holly had, and she found this; oops.
1 parent 8bfc18b commit 6b57f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenPack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ TuplePackExpansionInitialization::create(SILGenFunction &SGF,
573573

574574
CanPackExpansionType
575575
TuplePackExpansionInitialization::getLoweredExpansionType() const {
576-
auto loweredTupleTy = TupleAddr->getType().castTo<SILPackType>();
576+
auto loweredTupleTy = TupleAddr->getType().castTo<TupleType>();
577577
auto loweredComponentTy = loweredTupleTy.getElementType(ComponentIndex);
578578
return cast<PackExpansionType>(loweredComponentTy);
579579
}

0 commit comments

Comments
 (0)