Skip to content

Commit d02d49f

Browse files
committed
SIL: Add an assertion
1 parent 6a4786e commit d02d49f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/ValueUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Optional<ValueOwnershipKind>
2020
swift::mergeSILValueOwnership(ArrayRef<SILValue> values) {
2121
auto range = makeTransformRange(values,
2222
[](SILValue v) {
23+
assert(v->getType().isObject());
2324
return v.getOwnershipKind();
2425
});
2526
return ValueOwnershipKind::merge(range);

0 commit comments

Comments
 (0)