@@ -288,13 +288,13 @@ bool SILValueOwnershipChecker::gatherUsers(
288
288
// Ok, we have some sort of borrow introducer. We need to recursively validate
289
289
// that all of its uses (including sub-scopes) are before any end_borrows that
290
290
// may end the lifetime of the borrow introducer. With that in mind, gather up
291
- // our initial list of users .
292
- SmallVector<Operand *, 8 > users ;
293
- llvm::copy (value->getUses (), std::back_inserter (users ));
291
+ // our initial list of uses .
292
+ SmallVector<Operand *, 8 > uses ;
293
+ llvm::copy (value->getUses (), std::back_inserter (uses ));
294
294
295
295
bool foundError = false ;
296
- while (!users .empty ()) {
297
- Operand *op = users .pop_back_val ();
296
+ while (!uses .empty ()) {
297
+ Operand *op = uses .pop_back_val ();
298
298
SILInstruction *user = op->getUser ();
299
299
300
300
// If this op is a type dependent operand, skip it. It is not interesting
@@ -416,7 +416,7 @@ bool SILValueOwnershipChecker::gatherUsers(
416
416
assert (result->getOwnershipKind () == OwnershipKind::Guaranteed &&
417
417
" Our value is guaranteed and this is a forwarding instruction. "
418
418
" Should have guaranteed ownership as well." );
419
- llvm::copy (result->getUses (), std::back_inserter (users ));
419
+ llvm::copy (result->getUses (), std::back_inserter (uses ));
420
420
}
421
421
continue ;
422
422
}
@@ -452,7 +452,7 @@ bool SILValueOwnershipChecker::gatherUsers(
452
452
453
453
// Otherwise add all users of this BBArg to the worklist to visit
454
454
// recursively.
455
- llvm::copy (succArg->getUses (), std::back_inserter (users ));
455
+ llvm::copy (succArg->getUses (), std::back_inserter (uses ));
456
456
}
457
457
}
458
458
0 commit comments