Skip to content

Commit c3a81f0

Browse files
committed
[OwnershipUtils] Fixed uses of simple value.
Previously, a typo resulted in failing to add end_borrows to the list of uses.
1 parent 2c4f14b commit c3a81f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ bool swift::findUsesOfSimpleValue(SILValue value,
313313
if (end->getOperandOwnership() == OperandOwnership::Reborrow) {
314314
return false;
315315
}
316-
usePoints->push_back(use);
316+
usePoints->push_back(end);
317317
return true;
318318
})) {
319319
return false;

0 commit comments

Comments
 (0)