mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Remove AllocBoxInst::getElementType().
There's no longer a single element type to speak of. Update uses to either iterate all box fields or to assert that they're working with a single-field box.
This commit is contained in:
@@ -1728,7 +1728,8 @@ public:
|
||||
|
||||
require(AI->getType().isObject(),
|
||||
"result of alloc_box must be an object");
|
||||
verifyOpenedArchetype(AI, AI->getElementType().getSwiftRValueType());
|
||||
for (unsigned field : indices(AI->getBoxType()->getLayout()->getFields()))
|
||||
verifyOpenedArchetype(AI, AI->getBoxType()->getFieldLoweredType(field));
|
||||
}
|
||||
|
||||
void checkDeallocBoxInst(DeallocBoxInst *DI) {
|
||||
|
||||
Reference in New Issue
Block a user