mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add an assertion
This commit is contained in:
@@ -20,6 +20,7 @@ Optional<ValueOwnershipKind>
|
||||
swift::mergeSILValueOwnership(ArrayRef<SILValue> values) {
|
||||
auto range = makeTransformRange(values,
|
||||
[](SILValue v) {
|
||||
assert(v->getType().isObject());
|
||||
return v.getOwnershipKind();
|
||||
});
|
||||
return ValueOwnershipKind::merge(range);
|
||||
|
||||
Reference in New Issue
Block a user