mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -732,7 +732,7 @@ specializePartialApply(PartialApplyInst *PartialApply,
|
||||
// alloc_box. This makes sure that the project_box dominates the
|
||||
// partial_apply.
|
||||
if (!promoted)
|
||||
promoted = getOrCreateProjectBox(box);
|
||||
promoted = getOrCreateProjectBox(box, 0);
|
||||
|
||||
Args.push_back(promoted);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user