mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SILGen: Emit bb args for shared loadable case bindings that come after address-only ones.
Looks like a think-o; even if we see an address-only binding in a shared pattern block, we still expect bb args in the lowered basic block for anything that comes after it. rdar://problem/53956564
This commit is contained in:
@@ -2341,7 +2341,7 @@ void PatternMatchEmission::initSharedCaseBlockDest(CaseStmt *caseBlock,
|
||||
// We don't pass address-only values in basic block arguments.
|
||||
SILType ty = SGF.getLoweredType(vd->getType());
|
||||
if (ty.isAddressOnly(SGF.F))
|
||||
return;
|
||||
continue;
|
||||
block->createPhiArgument(ty, ValueOwnershipKind::Owned, vd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user