mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Give project_box a field index operand.
Allow project_box to get the address of any field in a multi-field box.
This commit is contained in:
@@ -1774,7 +1774,7 @@ void LifetimeChecker::processUninitializedRelease(SILInstruction *Release,
|
||||
// since the pointer it contains will be manually cleaned up.
|
||||
auto *ABI = dyn_cast<AllocBoxInst>(Release->getOperand(0));
|
||||
if (ABI)
|
||||
Pointer = getOrCreateProjectBox(ABI);
|
||||
Pointer = getOrCreateProjectBox(ABI, 0);
|
||||
|
||||
if (!consumed) {
|
||||
if (Pointer->getType().isAddress())
|
||||
|
||||
Reference in New Issue
Block a user